From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 14 Jun 2014 16:07:34 -0400 Subject: [U-Boot] [PATCH] fs/fat: add a parameter: allow_whole_dev to fat_register_device() In-Reply-To: <539A83F9.9040708@atmel.com> References: <1402552643-13297-1-git-send-email-josh.wu@atmel.com> <20140612062648.E79553803E2@gemini.denx.de> <53995100.9080307@atmel.com> <20140612085240.6E953380133@gemini.denx.de> <539A70FF.4080003@atmel.com> <539A78F6.9070702@nvidia.com> <539A83F9.9040708@atmel.com> Message-ID: <20140614200734.GE5752@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 Fri, Jun 13, 2014 at 12:54:17PM +0800, Josh Wu wrote: > Hi, Stephen > > On 6/13/2014 12:07 PM, Stephen Warren wrote: > >On 06/12/2014 09:33 PM, Josh Wu wrote: > >>Dear Wolfgang > >> > >>On 6/12/2014 4:52 PM, Wolfgang Denk wrote: > >>>Dear Josh Wu, > >>> > >>>In message <53995100.9080307@atmel.com> you wrote: > >>>>In U-Boot when we access a partition of a device, we use 'ifname > >>>>dev:part' format. > >>>>For instance: 'mmc 0:1' means the MMC card's #1 partition of the > >>>>device #0. > >>>Don;t we also support plain "ifname dev", i. e. without partition > >>>specification? > >>The problem is we only support "ifname dev" on command line mode or the > >>filesystem call which calls get_device_and_partition(). > >Why not just replace the calls to fat_register_device() with calls to > >get_device_and_partition() (perhaps some wrapper is needed to make the > >APIs match). That way, someone (U-Boot config file author I suppose) can > >always specify exactly what they want, without needing any > >non-deterministic fallbacks. > yes, that is the exactly I will do. Thanks. Yes, I also agree, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: