linux/drivers/soc/imx
Peng Fan c07ad220ea pmdomain: imx: wait SSAR when i.MX93 power domain on
commit 52dd070c62 upstream.

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: 0a0f7cc25d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-08-29 17:30:50 +02:00
..
gpc.c pmdomain: imx: Make imx pgc power domain also set the fwnode 2023-11-28 17:07:16 +00:00
gpcv2.c soc: imx: gpcv2: Assert reset before ungating clock 2022-08-21 21:34:48 +08:00
imx8m-blk-ctrl.c ARM: driver updates for 6.1 2022-10-06 11:04:57 -07:00
imx8mp-blk-ctrl.c soc: imx: imx8mp-blk-ctrl: don't set power device name 2023-02-01 08:34:04 +01:00
imx93-blk-ctrl.c soc: imx: add i.MX93 media blk ctrl driver 2022-09-17 16:31:06 +08:00
imx93-pd.c pmdomain: imx: wait SSAR when i.MX93 power domain on 2024-08-29 17:30:50 +02:00
imx93-src.c soc: imx: add i.MX93 SRC power domain driver 2022-09-17 16:31:06 +08:00
Kconfig soc: imx: add i.MX93 SRC power domain driver 2022-09-17 16:31:06 +08:00
Makefile soc: imx: add i.MX93 media blk ctrl driver 2022-09-17 16:31:06 +08:00
soc-imx.c soc: imx: Remove Layerscape check 2022-01-28 17:46:08 +08:00
soc-imx8m.c soc: imx8m: Enable OCOTP clock for imx8mm before reading registers 2023-10-06 14:56:49 +02:00