Home
last modified time | relevance | path

Searched hist:"6 dc93e70" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/drivers/mmc/
H A Dmmc.c6dc93e70 Tue Sep 02 18:31:23 CDT 2014 Peter Bigot <pab@pabigot.com> mmc: restore capacity when switching to partition 0

The capacity and lba for an MMC device with part_num 0 reflects the
whole device. When mmc_switch_part() successfully switches to a
partition, the capacity is changed to that partition. As partition 0
does not physically exist, attempts to switch back to the whole device
will indicate an error, but the capacity setting for the whole device
must still be restored to match the partition.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Tested-by: Tom Rini <trini@ti.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>