]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: core: don't ignore errors from event forwarding setup
authorAndré Draszik <andre.draszik@linaro.org>
Fri, 9 Jan 2026 08:38:42 +0000 (08:38 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jan 2026 13:37:59 +0000 (13:37 +0000)
commite23c0a59dabae9166bbea26fc05d08e7d9e900b7
tree92c0b57c70ec79127bb6058934b8e1020295f89f
parentbdbdc4b398254597c9b6ac279f336750996bc0a6
regulator: core: don't ignore errors from event forwarding setup

Receiving and forwarding critical supply events seems like they're
important information and we shouldn't ignore errors occurring during
registration for such events.

With this change the supply is unset on event registration failure,
allowing us to potentially retry another time.

Fixes: 433e294c3c5b ("regulator: core: forward undervoltage events downstream by default")
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260109-regulators-defer-v2-6-1a25dc968e60@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c