Re: [PATCH] mfd/da903x: initialize PMIC core early

From: Mark Brown
Date: Mon Jun 15 2009 - 10:34:33 EST


On Mon, Jun 15, 2009 at 05:08:28PM +0300, Mike Rapoport wrote:
> Samuel Ortiz wrote:

> > Sure. Care to explain why this needs to be called earlier ?

> We want to have da903x regulators available early during boot, and since they
> are subdevices of mfd/da903x they cannot be enabled until the da903x core is
> initialized.
> I just saw Liam Girdwood pull request with "regulator: Move regulator drivers to
> subsys_initcall()" commit and jumped in :)

Any MFD core with regulators on it ought to be pulled forward to
subsys_initcall(). Doing this makes it easier to get a sensible
ordering during boot without having a song and dance in consumer
drivers waiting for the regulators that supply them to instantiate.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/