diff options
author | Tom Rini <trini@konsulko.com> | 2022-04-22 11:06:38 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-22 11:06:38 -0400 |
commit | faeb5641131ba0bfafa5ed61dd03b98b1f2a5edb (patch) | |
tree | 4b7eccca6320b46bf938ad81042082cc5726e044 /drivers/power/domain | |
parent | 6d73175b1f407fefc6c5a0b81ac30c6b18bcc191 (diff) | |
parent | 847990219c04fe4d4b69deefdd29a2fb2d8171d9 (diff) | |
download | u-boot-faeb5641131ba0bfafa5ed61dd03b98b1f2a5edb.tar.gz u-boot-faeb5641131ba0bfafa5ed61dd03b98b1f2a5edb.tar.bz2 u-boot-faeb5641131ba0bfafa5ed61dd03b98b1f2a5edb.zip |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-pmic
Diffstat (limited to 'drivers/power/domain')
-rw-r--r-- | drivers/power/domain/power-domain-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/domain/power-domain-uclass.c b/drivers/power/domain/power-domain-uclass.c index 74c33d4e2e..f6286c70c1 100644 --- a/drivers/power/domain/power-domain-uclass.c +++ b/drivers/power/domain/power-domain-uclass.c @@ -151,7 +151,7 @@ static int dev_power_domain_ctrl(struct udevice *dev, bool on) * off their power-domain parent. So we will get here again and * again and will be stuck in an endless loop. */ - if (!on && dev_get_parent(dev) == pd.dev && + if (count > 0 && !on && dev_get_parent(dev) == pd.dev && device_get_uclass_id(dev) == UCLASS_POWER_DOMAIN) return ret; |