[U-Boot] [PATCH V2 1/2] cmd_mmc: eliminate device num in the mmc command
Wolfgang Denk
wd at denx.de
Wed Apr 27 21:12:32 CEST 2011
Dear Andy Fleming,
In message <BANLkTimmtV9L9P75A-PLez5rhVy4hYg=gA at mail.gmail.com> 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 at palladium.transmeta.com>
More information about the U-Boot
mailing list