From: Pierre Ossman Date: Sat, 28 Jun 2008 10:52:45 +0000 (+0200) Subject: mmc,sdio: helper function for transfer padding X-Git-Tag: v2.6.27-rc1~1047^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad3868b2ec96ec14a1549c9e33f5f9a2a3c6ab15;p=pandora-kernel.git mmc,sdio: helper function for transfer padding There are a lot of crappy controllers out there that cannot handle all the request sizes that the MMC/SD/SDIO specifications require. In case the card driver can pad the data to overcome the problems, this commit adds a helper that calculates how much that padding should be. A corresponding helper is also added for SDIO, but it can also deal with all the complexities of splitting up a large transfer efficiently. Signed-off-by: Pierre Ossman --- Reading git-diff-tree failed