summaryrefslogtreecommitdiff
path: root/drivers/thermal/rcar_thermal.c
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2015-09-30 20:42:15 +0300
committerVinod Koul <vinod.koul@intel.com>2015-10-01 05:14:31 +0300
commit7b09a1bba4091a9d208481d7831682a1f3061ab9 (patch)
treef9681f78e175c16b76ffcab80daac533aa6b5be6 /drivers/thermal/rcar_thermal.c
parente87ffbdf06971a80ad2a11217200bdd936195af1 (diff)
downloadlinux-7b09a1bba4091a9d208481d7831682a1f3061ab9.tar.xz
dmaengine: pxa_dma: fix residue corner case
A very tiny temporal window exists in the residue calculation where : - upon entering residue calculation, the transfer is ongoing - when reading the current transfer pointer, it just changed to the "finisher/linker" descriptor In this case, the residue returned is the whole transfer length instead of 0. Fix it. This appears almost in one extreme case, where the driver is used by older clients which inquire for residue in interrupt context, such as the smsc91x ethernet driver, in a tight loop : interrupt_handler() dmaengine_submit() do { dmaengine_tx_status() } while (residue > 0 || status != DMA_ERROR) Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/thermal/rcar_thermal.c')
0 files changed, 0 insertions, 0 deletions