mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
d2b1839425
We were passing set_capacity() the capacity we calculated in terms of the number of blocks on the card, which happened to be the right units for 512-byte block cards. However, with 1024-byte block cards, we end up setting the capacity to half the number of blocks. Fix this by shifting by the appropriate amount. Thanks to Todd Blumer for pointing this out. Use get_capacity() to report the card capacity, rather than recalculating it from the CSD information. Finally, use our chosen IO block size for the SET_BLOCKLEN command rather than the CSD read block size. Currently these are equivalent, but will not be in the future. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
au1xmmc.c | ||
au1xmmc.h | ||
Kconfig | ||
Makefile | ||
mmc_block.c | ||
mmc_queue.c | ||
mmc_queue.h | ||
mmc_sysfs.c | ||
mmc.c | ||
mmc.h | ||
mmci.c | ||
mmci.h | ||
pxamci.c | ||
pxamci.h | ||
wbsd.c | ||
wbsd.h |