]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dmaengine: at_xdmac: fix spurious flag status for mem2mem transfers
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 23 Nov 2015 13:09:39 +0000 (14:09 +0100)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 08:17:37 +0000 (13:47 +0530)
commit95da0c19d164f6df0b71a5187950f47d4b746e91
treef1bc2a2073f3c444d622454d84d5f2547d4f3a0c
parentd9f5efade2cfd729138a7cafb46d01044da40f5e
dmaengine: at_xdmac: fix spurious flag status for mem2mem transfers

When setting the channel configuration register, the perid field is not
set to 0 since it is useless for mem2mem transfers. Unfortunately, a
device has 0 as perid. It could cause spurious flags status because
the controller could mix some events from the two channels.
For that reason, use the highest perid value for mem2mem transfers since it
doesn't match the perid of other devices.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c