power: imx8-power-domain: Set DM_FLAG_DEFAULT_PD_CTRL_OFF flag
authorYe Li <ye.li@nxp.com>
Mon, 4 May 2020 13:16:51 +0000 (21:16 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
If without this flag, calling dev_power_domain_ctrl will iteratively remove
the power domain device will causes iteratively power off parent PD. This is
not expected by imx8-power-domain-legacy driver. Power off parent PD is
controlled by the driver internally.

So set DM_FLAG_DEFAULT_PD_CTRL_OFF to avoid such issue

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/domain/imx8-power-domain-legacy.c

index 2c479744d3f2e1eee9b1bdcd4f1ee86a38f8b174..e6e619358c358beea002741d444bf6a8face0daa 100644 (file)
@@ -341,4 +341,5 @@ U_BOOT_DRIVER(imx8_power_domain) = {
        .platdata_auto_alloc_size = sizeof(struct imx8_power_domain_platdata),
        .priv_auto_alloc_size = sizeof(struct imx8_power_domain_priv),
        .ops = &imx8_power_domain_ops,
+       .flags  = DM_FLAG_DEFAULT_PD_CTRL_OFF,
 };