]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MMC: Always use a sector size of 512 bytes
authorPierre Ossman <drzeus@drzeus.cx>
Wed, 29 Nov 2006 11:10:52 +0000 (12:10 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 29 Nov 2006 11:10:52 +0000 (12:10 +0100)
commite5b30aebbfdd1279c31fd64841a141079ccb881b
treeb0f0d5d2005dd22b1de5f0d6173bd1e16f8b8f53
parent540218dd286964e2c4ee2ee2b6259fd89bf5035e
MMC: Always use a sector size of 512 bytes

Both MMC and SD specifications specify (although a bit unclearly in the MMC
case) that a sector size of 512 bytes must always be supported by the card.

Cards can report larger "native" size than this, and cards >= 2 GB even
must do so. Most other readers use 512 bytes even for these cards. We should
do the same to be compatible.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/mmc/mmc_block.c