[U-Boot] [PATCH v2] mmc: Update "mmc->part_num" when performing a partition switch

Fabio Estevam festevam at gmail.com
Wed Jun 5 01:16:26 CEST 2013


On Tue, Jun 4, 2013 at 7:12 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:

>  static void fini_mmc_for_env(struct mmc *mmc)
>  {
>  #ifdef CONFIG_SYS_MMC_ENV_PART
> -       if (CONFIG_SYS_MMC_ENV_PART != mmc->part_num)
> +       if (mmc->part_num != orig_part_num)
>                 mmc_switch_part(CONFIG_SYS_MMC_ENV_DEV,
> -                               mmc->part_num);
> +                               orig_part_num);

If I keep the original 'mmc->part_num' here, then it works.


More information about the U-Boot mailing list