diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-05-23 18:48:10 (GMT) |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2014-06-12 12:21:12 (GMT) |
commit | 60dc58f735f173458ebed217cc7fe0c24816f383 (patch) | |
tree | 2f9e47160c7231c43fad8f3b1b89065fc7ec635d /board/mosaixtech | |
parent | d4622df34280830cfe0678f098d3d9f62e6b5d94 (diff) | |
download | u-boot-fsl-qoriq-60dc58f735f173458ebed217cc7fe0c24816f383.tar.xz |
cmd_mmc: default to HW partition 0 if not specified
Currently, "mmc dev 0" does not change the selected HW partition. I
think it makes more sense if "mmc dev 0" is an alias for "mmc dev 0 0",
i.e. that HW partition 0 (main data area) is always selected by default
if the user didn't request a specific partition. Otherwise, the following
happens, which feels wrong:
Select HW partition 1 (boot0):
mmc dev 0 1
Doesn't change the HW partition, so it's still 1 (boot0):
mmc dev 0
With this patch, the second command above re-selects the main data area.
Note that some MMC devices (i.e. SD cards) don't support HW partitions.
However, this patch still works, since mmc_start_init() sets the current
partition number to 0, and mmc_select_hwpart() succeeds if the requested
partition is already selected.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'board/mosaixtech')
0 files changed, 0 insertions, 0 deletions