android_kernel_xiaomi_sm8350/drivers/mmc
Russell King d2b1839425 [MMC] Set correct capacity for 1024-byte block cards
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>
2005-12-22 23:21:38 +00:00
..
au1xmmc.c Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
au1xmmc.h Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
Kconfig Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
Makefile Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
mmc_block.c [MMC] Set correct capacity for 1024-byte block cards 2005-12-22 23:21:38 +00:00
mmc_queue.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmc_queue.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmc_sysfs.c [PATCH] mmc: conditional scr sysfs entry 2005-09-07 16:57:52 -07:00
mmc.c [MMC] Explain the internals of mmc_power_up() 2005-12-14 14:57:35 +00:00
mmc.h [MMC] Add MMC class devices 2005-08-19 09:41:24 +01:00
mmci.c [MMC] mmci doesn't need asm/irq.h 2005-11-12 17:26:21 +00:00
mmci.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pxamci.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
pxamci.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wbsd.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-11-11 09:24:26 -08:00
wbsd.h [MMC] Remove unused timer. 2005-09-12 20:35:54 +01:00