]> err.no Git - linux-2.6/commit
mmc: cull sg list to match mmc request size
authorAlex Dubov <oakad@yahoo.com>
Fri, 13 Apr 2007 17:04:38 +0000 (19:04 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 1 May 2007 11:04:12 +0000 (13:04 +0200)
commit14d836e7499c53a1f6a65086c3d11600e871a971
tree37d1cb767422bd498a13654ecabd6f891b27b0e3
parentdc87c3985e9b442c60994308a96f887579addc39
mmc: cull sg list to match mmc request size

mmc layer may introduce additional (compared to block layer) limits on
request size. Culling of the sg list to match adjusted request size
simplifies the handling of such cases in the low level driver, allowing
it to skip block count checks while processing sg entries.

(fixes for wbsd and sdhci by Pierre Ossman)

Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/mmc_block.c
drivers/mmc/sdhci.c
drivers/mmc/sdhci.h
drivers/mmc/wbsd.c
drivers/mmc/wbsd.h