]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: pca953x: propagate regulator_enable() error from resume
authorStepan Ionichev <sozdayvek@gmail.com>
Wed, 20 May 2026 11:05:04 +0000 (16:05 +0500)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 21 May 2026 08:04:00 +0000 (10:04 +0200)
commitbe460cedb67ab803c1bebceac19b1d44acb85d30
tree4dfb03159f3dd2ebe904d7bb532310e144e60d50
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8
gpio: pca953x: propagate regulator_enable() error from resume

pca953x_resume() returns 0 when regulator_enable() fails, dropping
the real error code and masking the failure as a successful resume.
The caller then proceeds as if the chip is powered, while the
regulator is in fact disabled.

Return ret so PM core sees the actual failure.

Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
Link: https://patch.msgid.link/20260520110504.13969-1-sozdayvek@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-pca953x.c