[PATCH v4 4/7] ARM: imx: Enable imx53 low power idle

Sascha Hauer s.hauer at pengutronix.de
Thu May 17 12:44:12 EDT 2012


On Thu, May 17, 2012 at 09:46:21AM -0500, Rob Lee wrote:
> On Wed, May 16, 2012 at 12:47 PM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> >>
> >> +void __init imx5_init_late(void)
> >> +{
> >> +     imx5_pm_init();
> >> +}
> >> +
> >>  void __init imx51_init_late(void)
> >>  {
> >>       mx51_neon_fixup();
> >> -     imx5_pm_init();
> >> +     imx5_init_late();
> >>  }
> >
> > Where would you add i.MX53 specific code above? Hint: imx5_init_late is
> > the wrong function name.
> 
> I added imx5_init_late for late_init functionality that is common
> among all imx5.  For example, in the future imx50 may use it as well.
> But I can remove this and repeat the imx5_pm_init() calls for each
> platform if you prefer that.

The point is that the init_late callback should have a imx53_* name,
otherwise if you call it imx5_* there is no place to add imx53 only
functionality. You can always call imx5 specific things from imx53
context, but not the other way round.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list