Skip to content
Commit 25c5e962 authored by Ludovic Desroches's avatar Ludovic Desroches Committed by Vinod Koul
Browse files

dmaengine: at_xdmac: fix residue computation



When computing the residue we need two pieces of information: the current
descriptor and the remaining data of the current descriptor. To get
that information, we need to read consecutively two registers but we
can't do it in an atomic way. For that reason, we have to check manually
that current descriptor has not changed.

Signed-off-by: default avatarLudovic Desroches <ludovic.desroches@atmel.com>
Suggested-by: default avatarCyrille Pitchen <cyrille.pitchen@atmel.com>
Reported-by: default avatarDavid Engraf <david.engraf@sysgo.com>
Tested-by: default avatarDavid Engraf <david.engraf@sysgo.com>
Fixes: e1f7c9ee

 ("dmaengine: at_xdmac: creation of the atmel
eXtended DMA Controller driver")
Cc: stable@vger.kernel.org #4.1 and later
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent a9af316c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment