From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 22 Jun 2019 12:08:57 -0400 Subject: [U-Boot] [PATCH] disk: part: Don't skip partition init In-Reply-To: <1560873184-21616-1-git-send-email-hancock@sedsystems.ca> References: <1560873184-21616-1-git-send-email-hancock@sedsystems.ca> Message-ID: <20190622160857.GD9388@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, Jun 18, 2019 at 09:53:04AM -0600, Robert Hancock wrote: > blk_get_device_by_str was skipping part_init when hw partition 0 was > selected because it is the default. However, this caused issues when > switching to a non-zero partition and then back to partition zero, as > stale data from the wrong partition was returned. > > Remove this optimization and call part_init regardless of the selected > partition. > > Signed-off-by: Robert Hancock Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: