]> git.baikalelectronics.ru Git - kernel.git/commit
shdma: fixup sh_dmae_get_partial() calculation error
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 24 Jul 2013 06:12:41 +0000 (23:12 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 31 Jul 2013 01:10:17 +0000 (10:10 +0900)
commit3f4da773310a5e8857a77cd996a2b55c8adaf7e8
tree2b0e90112bfc90870094b08cb460db443a0d2779
parent44e6acc0f59d59cee8df913e5b544d1c8d94f858
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 9f062c98bfefb1e92c77f352511ac9be1aba056d
("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>
drivers/dma/sh/shdma.c