From: Wolfgang Denk Date: Fri, 29 Apr 2011 12:20:36 +0200 Subject: [U-Boot] [PATCH V2 1/2] cmd_mmc: eliminate device num in the mmc command In-Reply-To: References: <20110413054941.4E5C1151F83@gemini.denx.de> <1302920252-6274-2-git-send-email-leiwen@marvell.com> <20110427191232.3BBE8D52707@gemini.denx.de> Message-ID: <20110429102036.9D13DD5270B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Andy Fleming, In message you wrote: > > It's just that the other way would also be possible. I re-read the > thread where this was discussed, and while I definitely agree that the > originally proposed solution was highly error-prone, I think > *allowing* users to do this is fine: > > mmc read : > > Is there a reason that this wouldn't work with the current model? Of course it works, but I don't like it: - I think different user interfaces for the same thing are usually confusing. - Defining a policy will be necessay, and even then it may cause side effects. For example, does "mmc read : ..." change the "current" device settings, or are these only temporarily active while the command is running? etc. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Every living thing wants to survive. -- Spock, "The Ultimate Computer", stardate 4731.3