From: Tom Rini Date: Thu, 11 Sep 2014 13:45:58 -0400 Subject: [U-Boot] [PATCH 2/2] mmc: restore capacity when switching to partition 0 In-Reply-To: <1409700683-25393-3-git-send-email-pab@pabigot.com> References: <1409700683-25393-1-git-send-email-pab@pabigot.com> <1409700683-25393-3-git-send-email-pab@pabigot.com> Message-ID: <20140911174558.GX25506@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Sep 02, 2014 at 06:31:23PM -0500, Peter A. Bigot wrote: > The capacity and lba for an MMC device with part_num 0 reflects the > whole device. When mmc_switch_part() successfully switches to a > partition, the capacity is changed to that partition. As partition 0 > does not physically exist, attempts to switch back to the whole device > will indicate an error, but the capacity setting for the whole device > must still be restored to match the partition. > > Signed-off-by: Peter A. Bigot Tested-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: