Hi Maxime, On 14 November 2016 at 06:42, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Fri, Nov 11, 2016 at 11:16:39AM -0800, Moritz Fischer wrote: >> > +U_BOOT_DRIVER(ds2431) = { >> > + .name = "ds2431", >> > + .id = UCLASS_EEPROM, >> > + .ops = &ds2431_ops, >> >> Do you want to add a .flags = DM_UC_FLAG_SEQ_ALIAS here? > > I don't know. I was kind of wondering why U-Boot relies on aliases so > much, especially when the Linux DT maintainers are saying that aliases > should be avoided entirely, and we'll won't be able to upstream those > changes.
U-Boot uses numbering on the command line for lots of device types. E.g. the i2c bus number in the 'i2c' command. The aliases set the numbering. We should add support for moving away from numbering and using names, at least as an option. I have not looked at that yet. Probably we should consider changing command-line parsing to be handled in a common library, with each command receiving a 'parsed' list of args and options. I have not looked at that either. Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot