From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 4 Jul 2007 13:53:17 +0200 Subject: [U-Boot-Users] U-Boot-NG ? In-Reply-To: <20070704114659.GK3361@leda.ptxnet.pengutronix.de> References: <20070703231303.708A6353AF8@atlas.denx.de> <20070704114659.GK3361@leda.ptxnet.pengutronix.de> Message-ID: <200707041353.17753.sr@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 On Wednesday 04 July 2007, Sascha Hauer wrote: > > I agree 100%. What I would like to have in a new version is that > > devices only get initialized before they are actually used in U-Boot, > > and get deiniztialized (shut down completely) after being used (not > > doing the latter is a continuing PITA in the current code). > > My tree already has a device structure containing the usual probe > function. This should only make sure that the device is registered > and can be used, but actual initialization can be defered. The thing > currently missing is a tree structure for devices. They are all in one > simple linked list, so you cannot make sure that the devices get > de-initialized in the correct order. > > btw I know one exception to the only-initialized-when-used rule. We > often need to initialize the MAC Address in ethernet devices, even when > they are not used. My crystal ball just told me, that there will be a remark from Wolfgang about this statement. ;-) Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================