regulator: da9121: Prevent current limit change when enabled
authorAdam Ward <Adam.Ward.opensource@diasemi.com>
Mon, 29 Nov 2021 22:10:12 +0000 (22:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:04:32 +0000 (11:04 +0100)
commitf168858f60962161a32e94acddc5a241327f70aa
treea194870f4bd013ebe97fa5cc428702f91cb022ef
parent34b1e259b1f5a39787fd04a7f1e526e413d8647a
regulator: da9121: Prevent current limit change when enabled

[ Upstream commit 24f0853228f3b98f1ef08d5824376c69bb8124d2 ]

Prevent changing current limit when enabled as a precaution against
possibile instability due to tight integration with switching cycle

Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com>
Link: https://lore.kernel.org/r/52ee682476004a1736c1e0293358987319c1c415.1638223185.git.Adam.Ward.opensource@diasemi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/da9121-regulator.c