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: Remove redundant SPI_DW dep on SPI_DW_ACCESS_WORD_ONLY 2020-02-08 09:58:33 +02:00
Kconfig.gecko kconfig: Turn pointless 'menuconfig's into 'config's 2020-01-24 21:30:17 -05:00
Kconfig.litex
Kconfig.mcux_dspi
Kconfig.mcux_flexcomm drivers: spi: kconfig: Turn pointless 'menuconfig' into 'config' 2020-01-03 07:32:32 -06:00
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: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.rv32m1_lpspi kconfig: Fix up newly-introduced copy-pasted headers 2019-11-19 15:25:08 -05:00
Kconfig.sam drivers: spi: spi_sam: rework device tree support 2020-04-25 09:29:54 -05:00
Kconfig.sam0
Kconfig.sifive kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.stm32 drivers: spi: Enable dma transfer for SPI on stm32 2020-05-04 09:46:07 -05:00
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_regs.h
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_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_sam0.c drivers: spi: Fix device instance const qualifier loss 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_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