From: Guennadi Liakhovetski Date: Wed, 22 Dec 2010 11:02:15 +0000 (+0100) Subject: mmc: tmio_mmc: implement a bounce buffer for unaligned DMA X-Git-Tag: v2.6.38-rc1~418^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93173054f2979de41b1912b19f0b57edfb35fcdc;p=pandora-kernel.git mmc: tmio_mmc: implement a bounce buffer for unaligned DMA For example, with SDIO WLAN cards, some transfers happen with buffers at odd addresses, whereas the SH-Mobile DMA engine requires even addresses for SDHI. This patch extends the tmio driver with a bounce buffer, that is used for single entry scatter-gather lists both for sending and receiving. If we ever encounter unaligned transfers with multi-element sg lists, this patch will have to be extended. For now it just falls back to PIO in this and other unsupported cases. Signed-off-by: Guennadi Liakhovetski Acked-by: Samuel Ortiz Signed-off-by: Chris Ball --- Reading git-diff-tree failed