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)
commitca0c52710c14e9d38f8e493625a3a51147ebddcc
tree7a2c073801765b570d78be3c70026287231db49d
parent8c0a1c6de84387ad6264d4ea6fa03e2214908960
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 <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/domain/imx8-power-domain-legacy.c