soc: imx: imx8mp-blk-ctrl: register HSIO PLL clock as bus_power_dev child
authorLucas Stach <l.stach@pengutronix.de>
Mon, 17 Jul 2023 14:54:09 +0000 (16:54 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 19 Jul 2023 07:44:02 +0000 (15:44 +0800)
commit53cab4d871690c49fac87c657cbf459e39c5b93b
tree90d4afe3c3db739b7b4a093a660102c86214f647
parentc486762fb17c99fd642beea3e1e4744d093c262a
soc: imx: imx8mp-blk-ctrl: register HSIO PLL clock as bus_power_dev child

The blk-ctrl device is deliberately placed outside of the GPC power
domain as it needs to control the power sequencing of the blk-ctrl
domains together with the GPC domains.

Clock runtime PM works by operating on the clock parent device, which
doesn't translate into the neccessary GPC power domain action if the
clk parent is not part of the GPC power domain. Use the bus_power_device
as the parent for the clock to trigger the proper GPC domain actions on
clock runtime power management.

Fixes: 2cbee26e5d59 ("soc: imx: imx8mp-blk-ctrl: expose high performance PLL clock")
Reported-by: Yannic Moog <Y.Moog@phytec.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Yannic Moog <y.moog@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/imx8mp-blk-ctrl.c