]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmdomain: imx: wait SSAR when i.MX93 power domain on
authorPeng Fan <peng.fan@nxp.com>
Wed, 14 Aug 2024 12:47:40 +0000 (20:47 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Aug 2024 10:47:09 +0000 (12:47 +0200)
commit52dd070c62e4ae2b5e7411b920e3f7a64235ecfb
tree0b0b067bd3c2e0619ac22a5836b8374572438c62
parent50359c9c3cb3e55e840e3485f5ee37da5b2b16b6
pmdomain: imx: wait SSAR when i.MX93 power domain on

With "quiet" set in bootargs, there is power domain failure:
"imx93_power_domain 44462400.power-domain: pd_off timeout: name:
 44462400.power-domain, stat: 4"

The current power on opertation takes ISO state as power on finished
flag, but it is wrong. Before powering on operation really finishes,
powering off comes and powering off will never finish because the last
powering on still not finishes, so the following powering off actually
not trigger hardware state machine to run. SSAR is the last step when
powering on a domain, so need to wait SSAR done when powering on.

Since EdgeLock Enclave(ELE) handshake is involved in the flow, enlarge
the waiting time to 10ms for both on and off to avoid timeout.

Cc: stable@vger.kernel.org
Fixes: 0a0f7cc25d4a ("soc: imx: add i.MX93 SRC power domain driver")
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20240814124740.2778952-1-peng.fan@oss.nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/imx/imx93-pd.c