diff options
author | Erik Tideman <erik.tideman@faltcom.se> | 2016-01-11 13:39:07 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-20 10:19:19 -0500 |
commit | 99e7fc8a2659ff1b2887c8b11b01ef423e00ee1c (patch) | |
tree | f0d07f33cd5b7f77bc79403511fef9dce62fe1e5 /board/freescale | |
parent | 1d48ca69e5cb0538b0cae8fa651d2cb2eb97b2cb (diff) | |
download | u-boot-99e7fc8a2659ff1b2887c8b11b01ef423e00ee1c.zip u-boot-99e7fc8a2659ff1b2887c8b11b01ef423e00ee1c.tar.gz u-boot-99e7fc8a2659ff1b2887c8b11b01ef423e00ee1c.tar.bz2 |
mmc: emmc and hw partitions partition table id bugfix.
On bootup the emmc's hw partition is always set to 0 and the partition
table is read from it. When switching to another hw partition the
partition table's id is not updated but instead the old one from
hw partition 0 is used. If there is no partition table on hw partition 0
then the code will terminate and return error even if the desired hw
partition contains a perfectly fine partition table. This fix updates
the partition table struct to correspond to the specified hw partition
before testing if the partition table is valid or not.
Signed-off-by: Erik Tideman <erik.tideman@faltcom.se>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Squash the patch that corrected whitespace in the original into
this one, wrap with HAVE_BLOCK_DEVICE test]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/freescale')
0 files changed, 0 insertions, 0 deletions