* [PATCH] ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4
@ 2025-03-31 14:44 Andreas Kemnade
2025-04-01 3:54 ` Tony Lindgren
2025-04-11 0:44 ` Kevin Hilman
0 siblings, 2 replies; 3+ messages in thread
From: Andreas Kemnade @ 2025-03-31 14:44 UTC (permalink / raw)
To: khilman, aaro.koskinen, andreas, rogerq, tony, linux, linux-omap,
linux-arm-kernel, linux-kernel, sre
Cc: stable
The late init call just writes to omap4 registers as soon as
CONFIG_MFD_CPCAP is enabled without checking whether the
cpcap driver is actually there or the SoC is indeed an
OMAP4.
Rather do these things only with the right device combination.
Fixes booting the BT200 with said configuration enabled and non-factory
X-Loader and probably also some surprising behavior on other devices.
Fixes: c145649bf262 ("ARM: OMAP2+: Configure voltage controller for cpcap to low-speed")
CC: <stable@vger.kernel.org>
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
arch/arm/mach-omap2/pmic-cpcap.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/pmic-cpcap.c b/arch/arm/mach-omap2/pmic-cpcap.c
index 4f31e61c0c90..9f9a20274db8 100644
--- a/arch/arm/mach-omap2/pmic-cpcap.c
+++ b/arch/arm/mach-omap2/pmic-cpcap.c
@@ -264,7 +264,11 @@ int __init omap4_cpcap_init(void)
static int __init cpcap_late_init(void)
{
- omap4_vc_set_pmic_signaling(PWRDM_POWER_RET);
+ if (!of_find_compatible_node(NULL, NULL, "motorola,cpcap"))
+ return 0;
+
+ if (soc_is_omap443x() || soc_is_omap446x() || soc_is_omap447x())
+ omap4_vc_set_pmic_signaling(PWRDM_POWER_RET);
return 0;
}
--
2.39.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4
2025-03-31 14:44 [PATCH] ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4 Andreas Kemnade
@ 2025-04-01 3:54 ` Tony Lindgren
2025-04-11 0:44 ` Kevin Hilman
1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2025-04-01 3:54 UTC (permalink / raw)
To: Andreas Kemnade
Cc: khilman, aaro.koskinen, rogerq, linux, linux-omap,
linux-arm-kernel, linux-kernel, sre, stable
* Andreas Kemnade <andreas@kemnade.info> [250331 14:45]:
> The late init call just writes to omap4 registers as soon as
> CONFIG_MFD_CPCAP is enabled without checking whether the
> cpcap driver is actually there or the SoC is indeed an
> OMAP4.
> Rather do these things only with the right device combination.
>
> Fixes booting the BT200 with said configuration enabled and non-factory
> X-Loader and probably also some surprising behavior on other devices.
Nice catch:
Reivewed-by: Tony Lindgren <tony@atomide.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4
2025-03-31 14:44 [PATCH] ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4 Andreas Kemnade
2025-04-01 3:54 ` Tony Lindgren
@ 2025-04-11 0:44 ` Kevin Hilman
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2025-04-11 0:44 UTC (permalink / raw)
To: khilman, aaro.koskinen, rogerq, tony, linux, linux-omap,
linux-arm-kernel, linux-kernel, sre, Andreas Kemnade
Cc: stable
On Mon, 31 Mar 2025 16:44:39 +0200, Andreas Kemnade wrote:
> The late init call just writes to omap4 registers as soon as
> CONFIG_MFD_CPCAP is enabled without checking whether the
> cpcap driver is actually there or the SoC is indeed an
> OMAP4.
> Rather do these things only with the right device combination.
>
> Fixes booting the BT200 with said configuration enabled and non-factory
> X-Loader and probably also some surprising behavior on other devices.
>
> [...]
Applied, thanks!
[1/1] ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4
commit: 7397daf1029d5bfd3415ec8622f5179603d5702d
Best regards,
--
Kevin Hilman <khilman@baylibre.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-11 0:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31 14:44 [PATCH] ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4 Andreas Kemnade
2025-04-01 3:54 ` Tony Lindgren
2025-04-11 0:44 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).