From: Wolfgang Denk Date: Wed, 27 Apr 2011 21:12:32 +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> Message-ID: <20110427191232.3BBE8D52707@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: > > > From now on, follow the general rule "mmc dev [dev]" to change the > > mmc command applied device, like ide and usb... ... > I'd really prefer if there were still the option to specify the device > in the read/write commands. I appreciate the convenience of not having > to specify it every time, but I feel that by doing things this way, we > create an artificial separation between a transaction, and the target > of the transaction. It tends to encourage a notion that a transaction > can only be done to the global-current device, which is fine for > command-line interfaces, but can result in broken programming > interfaces PLease see the preceeding thread for the reasons for this interface (make it the same as what we have with USB, IDE, etc.). Yes, it is not a nice one. We really want a beter device model. [I agree with the rest of your comments, though.] 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 Yes, it's a technical challenge, and you have to kind of admire people who go to the lengths of actually implementing it, but at the same time you wonder about their IQ... -- Linus Torvalds in <5phda5$ml6$1@palladium.transmeta.com>