From: Kuninori Morimoto Date: Wed, 24 Jul 2013 06:12:41 +0000 (-0700) Subject: shdma: fixup sh_dmae_get_partial() calculation error X-Git-Tag: v3.11-rc5~26^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c4d9276626c93477af0b0b9d46b4dcb37e2eed2;p=pandora-kernel.git 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 c014906a870ce70e009def0c9d170ccabeb0be63 ("dmaengine: shdma: extend .device_terminate_all() to record partial transfer"), which was added in 2.6.34-rc1. Cc: Vinod Koul Signed-off-by: Kuninori Morimoto Acked-by: Guennadi Liakhovetski Signed-off-by: Simon Horman --- Reading git-diff-tree failed