Dear Lukasz, In message <20180225161813.10554012@jawa> you wrote: > > As I've read the discussion between Tom and Wolfgang - I'm wondering if > this initialization could be done in the driver model?
Indeed DM would be a good place for such lazy initialization as would be useful here. > > I think that DM is a right place to put such code (ecluding the case > of env in eMMC readed in SPL). But even there we cannot add code to initialize all kinds of potential storage devices to all kinds of supported file systems. This may work with a single fixed configuration (which probably is what the OP had in mind), but it does not scale, and it is the wrong thing to do. > I've added Simon to CC, so maybe he can give us some insights. Thanks. Hopefully Simon has a clever idea... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "If you can, help others. If you can't, at least don't hurt others." - the Dalai Lama _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot