linux/drivers/dma/sh
Kuninori Morimoto 3c4d927662 shdma: fixup sh_dmae_get_partial() calculation error
sh_desc->hw.tcr is controlling real data size,
and, register TCR is controlling data transfer count
which was xmit_shifted value of hw.tcr.
Current sh_dmae_get_partial() is calculating in different unit.
This patch fixes it.

This bug has been present since c014906a87
("dmaengine: shdma: extend .device_terminate_all() to record partial
transfer"), which was added in 2.6.34-rc1.

Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2013-07-31 10:10:17 +09:00
..
Kconfig sudmac: add support for SUDMAC 2013-04-30 15:50:12 +05:30
Makefile DMA: shdma: add DT support 2013-07-05 11:41:00 +05:30
shdma-base.c DMA: shdma: add DT support 2013-07-05 11:41:00 +05:30
shdma-of.c DMA: shdma: add DT support 2013-07-05 11:41:00 +05:30
shdma.c shdma: fixup sh_dmae_get_partial() calculation error 2013-07-31 10:10:17 +09:00
shdma.h dmaengine: shdma: prepare to stop using struct dma_chan::private 2012-07-20 11:23:44 +05:30
sudmac.c sudmac: add support for SUDMAC 2013-04-30 15:50:12 +05:30