From: Stephen Warren Date: Tue, 12 Apr 2016 14:40:34 -0600 Subject: [U-Boot] [PATCH 20/44] dm: mmc: Add an implementation of the 'devnum' functions In-Reply-To: <1460256336-30436-21-git-send-email-sjg@chromium.org> References: <1460256336-30436-1-git-send-email-sjg@chromium.org> <1460256336-30436-21-git-send-email-sjg@chromium.org> Message-ID: <570D5D42.1000007@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 04/09/2016 08:45 PM, Simon Glass wrote: > Now that the MMC code accesses devices by number, we can implement this same > interface for driver model, allowing MMC to support using driver model for > block devices. > > Add the required functions to the uclass. > +int blk_list_part(enum if_type if_type) I have the same comment for this function as the earlier similar function, although given the function signature here it does seem obvious that it's really meant to list partitions on multiple devices. How does the user invoke that from the command-line? Hmm, it looks like "ide part" works differently (prints for all devices) than "part list" (which works on a single user-specified device); odd..