From: Guennadi Liakhovetski Date: Wed, 3 Feb 2010 14:44:12 +0000 (+0000) Subject: sh: fix Transfer Size calculation in both DMA drivers X-Git-Tag: v2.6.34-rc1~285^2~40^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623b4ac4bf9e767991c66e29b47dd4b19458fb42;p=pandora-kernel.git sh: fix Transfer Size calculation in both DMA drivers Both the original arch/sh/drivers/dma/dma-sh.c and the new SH dmaengine drivers do not take into account bits 3:2 of the Transfer Size field in the CHCR register, besides, bit-field defines set bit 2, but the mask only passes bits 1:0 through. TS_16BLK and TS_32BLK macros are bogus too. This patch fixes all these issues for sh7722 and sh7724, other CPUs stay unchanged and might need to be fixed too. Signed-off-by: Guennadi Liakhovetski Acked-by: Dan Williams Signed-off-by: Paul Mundt --- Reading git-diff-tree failed