Skip to content
Commit 8d6e7f83 authored by Matti Vaittinen's avatar Matti Vaittinen Committed by Phil Elwell
Browse files

regulator: pickable ranges: don't always cache vsel



[ Upstream commit f4f4276f ]

Some PMICs treat the vsel_reg same as apply-bit. Eg, when voltage range
is changed, the new voltage setting is not taking effect until the vsel
register is written.

Add a flag 'range_applied_by_vsel' to the regulator desc to indicate this
behaviour and to force the vsel value to be written to hardware if range
was changed, even if the old selector was same as the new one.

Signed-off-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Link: https://msgid.link/r/ZktCpcGZdgHWuN_L@fedora


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Stable-dep-of: 1ace99d7 ("regulator: tps6287x: Force writing VSEL bit")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f0fbebb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment