]> git.ipfire.org Git - thirdparty/u-boot.git/commit
power: regulator: qcom-rpmh: correctly map pmic mode
authorCasey Connolly <casey.connolly@linaro.org>
Thu, 8 Jan 2026 20:28:48 +0000 (21:28 +0100)
committerCasey Connolly <casey.connolly@linaro.org>
Wed, 14 Jan 2026 15:25:09 +0000 (16:25 +0100)
commitdeb2b9c4033b5c3cc684ca62c79db61a7ca3d199
tree7c5be46b2608f2fc1b3993f770111402e5e42369
parent3afd2b9f97db8519fe6d987d69e7f70de0af6321
power: regulator: qcom-rpmh: correctly map pmic mode

Currently we don't properly map between the regulator mode ID enum and
the appropriate register values in the mode map, as a result we always
unintentionally vote for retention mode if we actually attempt to set
it. In the set_mode path we did find the appropriate entry in the mode
map but we wrote the id instead of the register values. Clean this up
and properly map id -> mode and vice versa.

Link: https://patch.msgid.link/20260108-rpmh-regulator-fixes-v1-6-d1b5b300b665@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
drivers/power/regulator/qcom-rpmh-regulator.c