dmaengine: rcar-dmac: Fix residue reporting for pending descriptors
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 30 Jun 2016 15:15:18 +0000 (17:15 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 8 Jul 2016 05:39:10 +0000 (11:09 +0530)
commit55bd582b4d8c2266bc43cbae2ddfce31b489618f
treefda48990a482ed0d73b72f678c14b7d94f721621
parent48c73659abae103a2f8531f825ce7a3f8dedbb39
dmaengine: rcar-dmac: Fix residue reporting for pending descriptors

Cookies corresponding to pending transfers have a residue value equal to
the full size of the corresponding descriptor. The driver miscomputes
that and uses the size of the active descriptor instead. Fix it.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[geert: Also check desc.active list]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-dmac.c
This page took 0.025806 seconds and 5 git commands to generate.