From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Fritz Subject: [BUG] omap: mfd/regulator: twl/core: init order Date: Sat, 13 Apr 2013 20:27:39 +0200 Message-ID: <1365877659.3812.110.camel@mars> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Sender: linux-omap-owner@vger.kernel.org To: Tony Lindgren , Javier Martinez Canillas , Liam Girdwood , =?ISO-8859-1?Q?Beno=EEt?= Cousson , Tomi Valkeinen , Alessandro Zummo , Peter Ujfalusi , Samuel Ortiz Cc: "linux-omap@vger.kernel.org" , devicetree-discuss@lists.ozlabs.org, Daniel Mack , "Hans J. Koch" List-Id: devicetree@vger.kernel.org Hi while testing an omap3 board with device tree support I stumbled upon a bug which is due to wrong initialization order of twl-core and twl-regulator (I suppose): In the boot process they get loaded way too late so that a lot of drivers before where configured wrong or just refuse to load. For example the real time clock driver: The RTC kicks in way before twl_probe() and due to that it configures its register map wrong (at this time twl_priv->twl_id isn't configured yet). Another example is the omap display subsystem. It (DSS) fails loading while trying to register some not yet existent regulators and because it lacks EPROBE_DEFER. USB and MMC is also not working and I'm suspicious of the same cause. Any ideas? Thanks -- Christoph