From: Guennadi Liakhovetski Date: Tue, 19 Jan 2010 07:24:55 +0000 (+0000) Subject: sh: prepare the DMA driver for slave functionality X-Git-Tag: v2.6.34-rc1~285^2~40^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc4618575f79eea062cdc51715040e40cd35b71c;p=pandora-kernel.git sh: prepare the DMA driver for slave functionality Slave DMA functionality uses scatter-gather arrays for data transfers, whereas memcpy just uses a single data buffer. This patch converts the current memcpy implementation in shdma.c to use scatter-gather, making it just a special case with one SG-element. This allows us to isolate descriptor list manipulations and locking into one function, thus reducing error chances. Signed-off-by: Guennadi Liakhovetski Acked-by: Dan Williams Signed-off-by: Paul Mundt --- Reading git-diff-tree failed