]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mfd: stpmic1: Attempt system shutdown twice in case PMIC is confused
authorMarek Vasut <marex@nabladev.com>
Thu, 22 Jan 2026 11:13:21 +0000 (12:13 +0100)
committerLee Jones <lee@kernel.org>
Wed, 25 Mar 2026 12:44:46 +0000 (12:44 +0000)
commitffdc5c51f8bcd0e5e8255ca275a0a3b958475d99
tree1d24f9f9b9d47c41b414890d7158ca3137ecd643
parenta5a65a7fb2f7796bbe492cd6be59c92cb64377d1
mfd: stpmic1: Attempt system shutdown twice in case PMIC is confused

Attempt to shut down again, in case the first attempt failed.
The STPMIC1 might get confused and the first regmap_update_bits()
returns with -ETIMEDOUT / -110 . If that or similar transient
failure occurs, try to shut down again. If the second attempt
fails, there is some bigger problem, report it to user.

Cc: stable@vger.kernel.org
Fixes: 6e9df38f359a ("mfd: stpmic1: Add PMIC poweroff via sys-off handler")
Signed-off-by: Marek Vasut <marex@nabladev.com>
Link: https://patch.msgid.link/20260122111423.62591-1-marex@nabladev.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/stpmic1.c