From: Ye Li Date: Mon, 4 May 2020 13:16:51 +0000 (+0800) Subject: power: imx8-power-domain: Set DM_FLAG_DEFAULT_PD_CTRL_OFF flag X-Git-Tag: v2020.07-rc2~3^2~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ca0c52710c14e9d38f8e493625a3a51147ebddcc;p=oweals%2Fu-boot.git power: imx8-power-domain: Set DM_FLAG_DEFAULT_PD_CTRL_OFF flag 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 Signed-off-by: Peng Fan --- diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index 2c479744d3..e6e619358c 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -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, };