[PATCH v5 2/3] omap_twl: Prevent SR to enable for am3517/am3505 devices
Kevin Hilman
khilman at ti.com
Fri Sep 30 19:27:03 EDT 2011
Abhilash,
Kevin Hilman <khilman at ti.com> writes:
> Abhilash K V <abhilash.kv at ti.com> writes:
>
>> From: Abhilash K V <abhilash.kv at ti.com>
>>
>> In case of AM3517 & AM3505, SmartReflex is not applicable so
>> we must not enable it. So omap3_twl_init() is now not called
>> when the processor does not support SR.
>
> This still isn't right.
>
> The reason to skip the TWL PMIC init is not because SR is not available
> (TWL PMICs are quite usable without SR). The reason to skip TWL PMIC
> init is because the PMIC is not present.
>
> Instead, we need to fix up the TWL/PMIC init so that TWL-specifics are
> only registered if a TWL driver is registered.
>
Below is a test patch that is a first pass at implementing what I
suggested above. I tested this (along with your patch 3/3) on a
3430/n900 after removing the omap_pmic_init() call frome the board file.
Can you let me know if this solves the problem you're seeing on
platforms that don't have TWL PMICs?
After digging into this more, I'm increasingly aware that the way we're
managing the init of PMIC stuff is a mess. Guess I need another round
of voltage layer cleanups to fix that up.
Kevin
More information about the linux-arm-kernel
mailing list