zephyr/drivers/dma
Erwin Rol 113b016b51 drivers: dma: stm32: change order of disabling and checking result
The stm32_dma_disable_stream first checked if the stream was
disabled and if so returned OK. If it wasn't disabled it
tried to disable it and returned -EAGAIN.

The function is used in loops that try to disable the stream
by calling this function and if it fails wait for 1ms and
retry.

Becuase this function the first time (if the stream wasn't
disabled already) fails there is always a 1 ms delay. For
the SPI driver, that has a RX and TX stream, this means
a 2ms delay between the last data and CS going high.

By first trying to disable the stream and than checking
if it succeded most of the time the first call disables
the stream and the 1ms delay isn't needed.

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
2020-09-04 12:00:37 +02:00
..
CMakeLists.txt MXRT600: Add DMA support 2020-08-28 14:24:21 -05:00
dma_dw.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
dma_dw.h drivers: dma: Align all drivers using user_data for callback 2020-07-30 09:48:00 +02:00
dma_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dma_mcux_edma.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
dma_mcux_edma.h dma: add EDMA MCUX support for RT and k6s 2020-06-12 13:03:28 -05:00
dma_mcux_lpc.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
dma_nios2_msgdma.c drivers: dma: Fix device instance const qualifier loss in NIOS2 driver 2020-09-02 13:48:13 +02:00
dma_pl330.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dma_pl330.h drivers: dma: Align all drivers using user_data for callback 2020-07-30 09:48:00 +02:00
dma_sam0.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
dma_sam_xdmac.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
dma_sam_xdmac.h drivers: dma: Align all drivers using dma_callback_t type 2020-07-30 09:48:00 +02:00
dma_stm32.c drivers: dma: stm32: check result of stream disabling 2020-09-03 21:50:58 +02:00
dma_stm32.h drivers: dma: stm32: remove global function tables 2020-09-03 21:50:58 +02:00
dma_stm32_v1.c drivers: dma: stm32: change order of disabling and checking result 2020-09-04 12:00:37 +02:00
dma_stm32_v2.c drivers: dma: stm32: change order of disabling and checking result 2020-09-04 12:00:37 +02:00
dmamux_stm32.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dmamux_stm32.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
Kconfig MXRT600: Add DMA support 2020-08-28 14:24:21 -05:00
Kconfig.dma_pl330 drivers: dma: Add pl330 dma driver 2020-07-24 11:54:31 +02:00
Kconfig.dw drivers/dma: Rename CAVS driver to DesignWare 2020-01-28 18:18:18 -05:00
Kconfig.mcux_edma drivers: dma: mcux_dma: add support for the NXP KE1xF 2020-07-21 08:56:51 -05:00
Kconfig.mcux_lpc MXRT600: Add DMA support 2020-08-28 14:24:21 -05:00
Kconfig.nios2_msgdma kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sam0 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sam_xdmac kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.stm32 drivers: dma: stm32: only set mem pool size when using DMAMUX 2020-09-03 21:50:58 +02:00