linux/drivers/dma
Bin Liu 59861547ec dmaengine: cppi41: delete channel from pending list when stop channel
The driver defines three states for a cppi channel.
- idle: .chan_busy == 0 && not in .pending list
- pending: .chan_busy == 0 && in .pending list
- busy: .chan_busy == 1 && not in .pending list

There are cases in which the cppi channel could be in the pending state
when cppi41_dma_issue_pending() is called after cppi41_runtime_suspend()
is called.

cppi41_stop_chan() has a bug for these cases to set channels to idle state.
It only checks the .chan_busy flag, but not the .pending list, then later
when cppi41_runtime_resume() is called the channels in .pending list will
be transitioned to busy state.

Removing channels from the .pending list solves the problem.

Fixes: 975faaeb99 ("dma: cppi41: start tear down only if channel is busy")
Cc: stable@vger.kernel.org # v3.15+
Signed-off-by: Bin Liu <b-liu@ti.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2018-12-05 14:01:59 +05:30
..
bestcomm treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
dw Merge branch 'topic/dw' into for-linus 2018-10-24 09:15:48 +01:00
dw-axi-dmac dmaengine: dw-axi-dmac: use dmaenginem_async_device_register to simplify the code 2018-08-29 21:43:17 +05:30
hsu dmaengine: hsu: remove dma_slave_config direction usage 2018-10-07 19:25:09 +05:30
ioat pci-v4.20-changes 2018-10-25 06:50:48 -07:00
ipu treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
mediatek dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC 2018-03-27 15:18:15 +05:30
ppc4xx dmaengine: ppc4xx: fix off-by-one build failure 2018-10-16 20:08:30 +05:30
qcom dmaengine updates for 4.18-rc1 2018-06-08 11:02:21 -07:00
sh dmaengine: rcar-dmac: set scatter/gather max segment size 2018-10-07 20:04:14 +05:30
ti dmaengine: cppi41: delete channel from pending list when stop channel 2018-12-05 14:01:59 +05:30
xilinx dmaengine: xilinx_dma: Enable VDMA S2MM vertical flip support 2018-06-29 14:20:00 +05:30
acpi-dma.c
altera-msgdma.c
amba-pl08x.c dmaengine: amba-pl08x: Use vchan_terminate_vdesc() instead of desc_free 2017-12-04 22:33:51 +05:30
at_hdmac_regs.h
at_hdmac.c dmaengine: at_hdmac: fix module unloading 2018-11-29 19:49:41 +05:30
at_xdmac.c dmaengine: at_xdmac: move spin_lock_bh to spin_lock in tasklet 2018-09-03 16:24:05 +05:30
bcm2835-dma.c dmaengine: bcm2835: remove dma_slave_config direction usage 2018-10-07 19:18:16 +05:30
bcm-sba-raid.c treewide: Use struct_size() for devm_kmalloc() and friends 2018-06-06 11:15:43 -07:00
coh901318_lli.c
coh901318.c dmaengine: coh901318: remove dma_slave_config direction usage 2018-10-07 19:19:03 +05:30
coh901318.h
dma-axi-dmac.c dmaengine: axi-dmac: Request IRQ with IRQF_SHARED 2018-05-02 10:06:42 +05:30
dma-jz4740.c dmaengine: jz4740: remove dma_slave_config direction usage 2018-10-07 19:20:14 +05:30
dma-jz4780.c Merge branch 'topic/jz' into for-linus 2018-10-24 09:16:04 +01:00
dmaengine.c Merge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-dax 2018-08-26 11:48:42 -07:00
dmaengine.h
dmatest.c dmaengine: dmatest: Remove use of VLAs 2018-04-16 21:05:54 +05:30
ep93xx_dma.c dmaengine: ep93xx_dma: remove dma_slave_config direction usage 2018-10-07 19:25:11 +05:30
fsl_raid.c
fsl_raid.h
fsl-edma-common.c dmaengine: fsl-edma: remove dma_slave_config direction usage 2018-10-09 14:29:58 +05:30
fsl-edma-common.h dmaengine: fsl-edma: remove dma_slave_config direction usage 2018-10-09 14:29:58 +05:30
fsl-edma.c dmaengine: fsl-edma: add edma version and configurable registers 2018-09-11 12:06:39 +05:30
fsldma.c dmaengine: fsldma: move spin_lock_bh to spin_lock in tasklet 2018-09-03 16:23:00 +05:30
fsldma.h
idma64.c Merge branch 'topic/intel' into for-linus 2018-10-24 09:15:59 +01:00
idma64.h
img-mdc-dma.c dmaengine: img-mdc-dma: Use vchan_terminate_vdesc() instead of desc_free 2017-12-04 22:33:51 +05:30
imx-dma.c dmaengine: imx-dma: remove dma_slave_config direction usage 2018-10-07 19:25:10 +05:30
imx-sdma.c dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations 2018-12-05 13:53:06 +05:30
iop-adma.c
k3dma.c dmaengine: k3dma: remove dma_slave_config direction usage 2018-10-07 19:25:10 +05:30
Kconfig Merge branch 'topic/jz' into for-linus 2018-10-24 09:16:04 +01:00
lpc18xx-dmamux.c
Makefile dmaengine: fsl-edma: add ColdFire mcf5441x edma support 2018-09-11 12:06:39 +05:30
mcf-edma.c dmaengine: mcf-edma: avoid warning for wrong pointer cast 2018-09-18 12:15:45 -07:00
mic_x100_dma.c dmaengine: mic_x100_dma: use devm_kzalloc to fix an issue 2018-08-27 11:16:04 +05:30
mic_x100_dma.h
mmp_pdma.c
mmp_tdma.c Merge branch 'topic/dmam' into for-linus 2018-10-24 09:15:43 +01:00
moxart-dma.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
mpc512x_dma.c
mv_xor_v2.c dmaengine: mv_xor_v2: use {lower,upper}_32_bits to configure HW descriptor address 2018-07-25 17:53:22 +05:30
mv_xor.c dmaengine: mv_xor: move spin_lock_bh to spin_lock in tasklet 2018-09-03 16:23:31 +05:30
mv_xor.h
mxs-dma.c dmaengine: mxs-dma: use dmaenginem_async_device_register to simplify the code 2018-08-29 21:43:18 +05:30
nbpfaxi.c Merge branch 'topic/renesas' into for-linus 2018-10-24 09:16:22 +01:00
of-dma.c
owl-dma.c dmaengine: owl: Fix warnings generated during build 2018-10-15 22:39:16 +05:30
pch_dma.c
pl330.c DMAengine updates for v4.19-rc1 2018-08-18 15:55:59 -07:00
pxa_dma.c dmaengine: pxa: fix semicolon.cocci warnings 2018-09-11 11:40:35 +05:30
s3c24xx-dma.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
sa11x0-dma.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
sirf-dma.c
sprd-dma.c dmaengine: sprd: Support DMA link-list mode 2018-09-03 16:58:50 +05:30
st_fdma.c dmaengine: st_fdma: use dmaenginem_async_device_register to simplify the code 2018-08-29 21:43:17 +05:30
st_fdma.h
ste_dma40_ll.c
ste_dma40_ll.h
ste_dma40.c dmaengine: ste_dma40: use dmaenginem_async_device_register to simplify the code 2018-08-29 21:43:17 +05:30
stm32-dma.c dmaengine: stm32-dma: check whether length is aligned on FIFO threshold 2018-10-02 20:32:15 +05:30
stm32-dmamux.c dmaengine: stm32-dmamux: fix a potential buffer overflow 2018-03-22 10:51:35 +05:30
stm32-mdma.c dmaengine: stm32-mdma: use dmaenginem_async_device_register to simplify the code 2018-08-29 21:43:17 +05:30
sun4i-dma.c
sun6i-dma.c
tegra20-apb-dma.c dmaengine: tegra-apb: Support non-flow controlled slave configuration 2017-11-29 19:35:05 +05:30
tegra210-adma.c
timb_dma.c dmaengine: timb_dma: Use proper enum in td_prep_slave_sg 2018-10-02 20:11:09 +05:30
TODO
txx9dmac.c dmaengine: txx9dmac: simplify getting .drvdata 2018-04-22 21:38:06 +05:30
txx9dmac.h
virt-dma.c dmaengine: virt-dma: Add helper to free/reuse a descriptor 2017-12-04 22:33:51 +05:30
virt-dma.h dmaengine: virt-dma: Support for race free transfer termination 2017-12-04 22:33:51 +05:30
xgene-dma.c
zx_dma.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00