From: Wolfgang Denk Date: Tue, 23 Aug 2011 13:52:07 +0200 Subject: [U-Boot] [RFC] New init sequence processing without init_sequence array In-Reply-To: <201108222100.25104.vapier@gentoo.org> References: <1313587343-3693-1-git-send-email-graeme.russ@gmail.com> <20110822201023.0F8A111EF9D9@gemini.denx.de> <201108222100.25104.vapier@gentoo.org> Message-ID: <20110823115207.066BF201520@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 Mike Frysinger, In message <201108222100.25104.vapier@gentoo.org> you wrote: > > > If you look at the current code - heavily larded with #ifdefs of > > all shapes and colors - I cannot see any good way to transform this > > into an initcall (and thus sequence number based) implementation. > > Do you have any specific ideas how to address this? > > if the funcs get merged by the linker script, the board still has full control > over the init order by writing their own linker script Indeed. So we have yet another point that makes debugging, understanding and reviewing the code more difficult - now a simple typo in the linker script also has the potential to mess up the init sequence in not exactly funny ways. 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 "Well I don't see why I have to make one man miserable when I can make so many men happy." - Ellyn Mustard, about marriage