]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: ti_sci: Set IO Isolation only if the firmware is capable
authorThomas Richard (TI.com) <thomas.richard@bootlin.com>
Fri, 31 Oct 2025 12:44:56 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:49 +0000 (14:02 +0100)
commit6a6f1e983edc7229499e8f7d0ba19e497d6fdadc
tree0c6cfe9e7dc271179a5e096fa5726a446b4da290
parent0612704b6f6ddf2ae223019c52148c5ac76cf70e
firmware: ti_sci: Set IO Isolation only if the firmware is capable

[ Upstream commit 999e9bc953e321651d69556fdd5dfd178f96f128 ]

Prevent calling ti_sci_cmd_set_io_isolation() on firmware
that does not support the IO_ISOLATION capability. Add the
MSG_FLAG_CAPS_IO_ISOLATION capability flag and check it before
attempting to set IO isolation during suspend/resume operations.

Without this check, systems with older firmware may experience
undefined behavior or errors when entering/exiting suspend states.

Fixes: ec24643bdd62 ("firmware: ti_sci: Add system suspend and resume call")
Signed-off-by: Thomas Richard (TI.com) <thomas.richard@bootlin.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Link: https://patch.msgid.link/20251031-ti-sci-io-isolation-v2-1-60d826b65949@bootlin.com
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h