]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerNishanth Menon <nm@ti.com>
Mon, 3 Nov 2025 15:09:02 +0000 (09:09 -0600)
commit999e9bc953e321651d69556fdd5dfd178f96f128
treef94fa5046182cfb5336de1d9fe6e373871df9632
parent7a4cd87e76fb4547d7843e3124611bf13004b18b
firmware: ti_sci: Set IO Isolation only if the firmware is capable

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>
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h