From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Fri, 30 May 2014 15:11:44 -0600 Subject: [U-Boot] [PATCH 1/2] cmd_mmc: default to HW partition 0 if not specified In-Reply-To: <1400870891-14655-1-git-send-email-swarren@wwwdotorg.org> References: <1400870891-14655-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <5388F410.7010300@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 05/23/2014 12:48 PM, Stephen Warren wrote: > From: Stephen Warren > > Currently, "mmc dev 0" does not change the selected HW partition. I > think it makes more sense if "mmc dev 0" is an alias for "mmc dev 0 0", > i.e. that HW partition 0 (main data area) is always selected by default > if the user didn't request a specific partition. Otherwise, the following > happens, which feels wrong: > > Select HW partition 1 (boot0): > mmc dev 0 1 > > Doesn't change the HW partition, so it's still 1 (boot0): > mmc dev 0 > > With this patch, the second command above re-selects the main data area. > > Note that some MMC devices (i.e. SD cards) don't support HW partitions. > However, this patch still works, since mmc_start_init() sets the current > partition number to 0, and mmc_select_hwpart() succeeds if the requested > partition is already selected. Pantelis, does this series look good?