zephyr/drivers/spi
Andrzej Głąbek a3430c2caf drivers: spi: nrfx: Restore recently changed spi_context function
Function spi_context_longest_current_buf() has been introduced in
commit ddef35c1da for the purpose of
getting the longest possible (potentially partial) SPI transfer
for which all currently active directions have a continuous buffer.
Such transfer can be done with taking advantage of a DMA that cannot
use scattered buffers (and this is the case for nRF SPI drivers with
which this function has been introduced).
Unfortunately, because of its inadequate name, later on this function
has been incorrectly used in other SPI drivers for getting the longer
of TX/RX buffers. And commit afc480f12b
recently "fixed" the implementation of this function, assumably to
adjust it to those incorrect uses, but this way it has also broken
the nRF SPI drivers.
Instead of restoring the original implementation of the function in
question, this commit adds a new one with functionality equivalent
to that original but with a hopefully less misleading name, and this
function is used in the nRF SPI drivers.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2020-09-15 15:59:18 +02:00
..
CMakeLists.txt drivers: spi: add driver for the Xilinx AXI Quad SPI IP 2020-08-26 12:32:27 +02:00
Kconfig drivers: spi: add driver for the Xilinx AXI Quad SPI IP 2020-08-26 12:32:27 +02:00
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.gecko
Kconfig.litex
Kconfig.mcux_dspi
Kconfig.mcux_flexcomm
Kconfig.mcux_lpspi
Kconfig.nrfx drivers: spi: Kconfig.nrfx: Use RAM buffers for SPIMs by default 2020-09-14 16:02:59 -05:00
Kconfig.oc_simple
Kconfig.rv32m1_lpspi
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.stm32
Kconfig.xec_qmspi
Kconfig.xlnx drivers: spi: add driver for the Xilinx AXI Quad SPI IP 2020-08-26 12:32:27 +02:00
spi_cc13xx_cc26xx.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_context.h drivers: spi: nrfx: Restore recently changed spi_context function 2020-09-15 15:59:18 +02:00
spi_dw.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_dw.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_dw_regs.h
spi_gecko.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_litespi.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_litespi.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
spi_ll_stm32.c drivers: spi_ll_stm32: refactor DMA support 2020-09-04 12:00:37 +02:00
spi_ll_stm32.h drivers: spi_ll_stm32: refactor DMA support 2020-09-04 12:00:37 +02:00
spi_mcux_dspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_mcux_flexcomm.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_mcux_lpspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_nrfx_spi.c drivers: spi: nrfx: Restore recently changed spi_context function 2020-09-15 15:59:18 +02:00
spi_nrfx_spim.c drivers: spi: nrfx: Restore recently changed spi_context function 2020-09-15 15:59:18 +02:00
spi_nrfx_spis.c drivers: spi: nrfx: Restore recently changed spi_context function 2020-09-15 15:59:18 +02:00
spi_oc_simple.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_oc_simple.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
spi_rv32m1_lpspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_sam.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_sam0.c drivers: spi: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
spi_sifive.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_sifive.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
spi_xec_qmspi.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_xlnx_axi_quadspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00