]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/mmc/mmc.c
mmc: report capacity for the selected partition
authorStephen Warren <swarren@nvidia.com>
Tue, 11 Jun 2013 21:14:01 +0000 (15:14 -0600)
committerAndy Fleming <afleming@freescale.com>
Thu, 13 Jun 2013 21:52:19 +0000 (16:52 -0500)
commitf866a46d6ee86335f60c542e294ec2c01d689eba
treebf0687968802541782242d034ec0b4d03a3bba6e
parent06e4ae5f8059caac5597e0cfcad5e2e45838fadb
mmc: report capacity for the selected partition

Enhance the MMC core to calculate the size of each MMC partition, and
update mmc->capacity whenever a partition is selected. This causes:

mmc dev 0 1 ; mmcinfo

... to report the size of the currently selected partition, rather than
always reporting the size of the user partition.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mmc.c
include/mmc.h