]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[MMC] Improve MMC card block size selection
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 3 Jan 2006 22:38:44 +0000 (22:38 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 3 Jan 2006 22:38:44 +0000 (22:38 +0000)
commita6f6c96b65d7f65a7a7bf5cbe874eda182a6b2cc
tree5f3bd4dc24866f2b0e593b1457b1f22ec641139b
parent88026842b0a760145aa71d69e74fbc9ec118ca44
[MMC] Improve MMC card block size selection

Select a block size for IO based on the read and write block size
combinations, and whether the card supports partial block reads
and/or partial block writes.

If we are able to satisfy block reads but not block writes, mark
the device read only.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/mmc.c
drivers/mmc/mmc_block.c
include/linux/mmc/card.h