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:Matti Vaittinen <mazziesaccount@gmail.com> Link: https://msgid.link/r/ZktCpcGZdgHWuN_L@fedora Signed-off-by:
Mark Brown <broonie@kernel.org> Stable-dep-of: 1ace99d7 ("regulator: tps6287x: Force writing VSEL bit") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment