]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4
authorAndreas Kemnade <andreas@kemnade.info>
Mon, 31 Mar 2025 14:44:39 +0000 (16:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:24 +0000 (11:05 +0100)
commit0e8878685902e97dfe4086493dbb2e90a667f770
tree742b72b89e2f1af9e5559a7317ef0a12f1fe3a5a
parent22441bf144ad2415581dd59b0291a93f626bb234
ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4

commit 7397daf1029d5bfd3415ec8622f5179603d5702d upstream.

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>
Reivewed-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20250331144439.769697-1-andreas@kemnade.info
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/pmic-cpcap.c