Skip to content
Commit c7d4bd1d authored by Ludovic Desroches's avatar Ludovic Desroches Committed by Sasha Levin
Browse files

dmaengine: at_xdmac: fix residue computation



[ Upstream commit 25c5e962 ]

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>

Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent eac52550
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment