Commit 0e887868 authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Greg Kroah-Hartman
Browse files

ARM: omap: pmic-cpcap: do not mess around without CPCAP or OMAP4



commit 7397daf1 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: c145649b ("ARM: OMAP2+: Configure voltage controller for cpcap to low-speed")
CC: stable@vger.kernel.org
Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
Reivewed-by: default avatarTony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20250331144439.769697-1-andreas@kemnade.info


Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 22441bf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment