]> Gentwo Git Trees - linux/.git/commit
firmware: ti_sci: Enable abort handling of entry to LPM
authorKendall Willis <k-willis@ti.com>
Tue, 19 Aug 2025 19:54:53 +0000 (14:54 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 22 Aug 2025 18:22:00 +0000 (13:22 -0500)
commit0fdd3240fe5a9bf4785e40506bf86b7e16546b83
treee14340da6fb2d69b2ee004af30b7e1cbe1994994
parenta5039648f86424885aae37f03dc39bc9cb972ecb
firmware: ti_sci: Enable abort handling of entry to LPM

The PM co-processor (device manager or DM) adds the ability to abort
entry to a low power mode by clearing the mode selection in the
latest version of its firmware (11.01.09) [1].

Enable the ti_sci driver to support the LPM abort call which clears the
low power mode selection of the DM. This fixes an issue where failed
system suspend attempts would cause subsequent suspends to fail.

After system suspend completes, regardless of if system suspend succeeds
or fails, the ->complete() hook in TI SCI will be called. In the
->complete() hook, a message will be sent to the DM to clear the current
low power mode selection. Clearing the low power mode selection
unconditionally will not cause any error in the DM.

[1] https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/pm/lpm.html

Signed-off-by: Kendall Willis <k-willis@ti.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/20250819195453.1094520-1-k-willis@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h