[U-Boot] [PATCH v2] mmc: Update "mmc->part_num" when performing a partition switch
Stephen Warren
swarren at wwwdotorg.org
Tue Jun 4 21:21:19 CEST 2013
On 06/04/2013 01:17 PM, Fabio Estevam wrote:
> When running the "save" command several times on a mx6qsabresd we see:
>
> U-Boot > save
> Saving Environment to MMC...
> Writing to MMC(1)... done
> U-Boot > save
> Saving Environment to MMC...
> MMC partition switch failed
> U-Boot > save
> Saving Environment to MMC...
> Writing to MMC(1)... done
> U-Boot > save
> Saving Environment to MMC...
> MMC partition switch failed
> U-Boot > save
> Saving Environment to MMC...
> Writing to MMC(1)... done
> U-Boot > save
> Saving Environment to MMC...
> MMC partition switch failed
>
> Fix this by updating mmc->part_num inside mmc_switch_part() after a succesful
> mmc partition switch.
This surely has exactly the same issue as the previous version, where
the update of part_num was done inside common/env_mmc.c?
More information about the U-Boot
mailing list