From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Tue, 04 Jun 2013 13:21:19 -0600 Subject: [U-Boot] [PATCH v2] mmc: Update "mmc->part_num" when performing a partition switch In-Reply-To: <1370373446-14025-1-git-send-email-fabio.estevam@freescale.com> References: <1370373446-14025-1-git-send-email-fabio.estevam@freescale.com> Message-ID: <51AE3E2F.9020408@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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?