mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
This commit is contained in:
commit
faeb564113
@ -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
|
* off their power-domain parent. So we will get here again and
|
||||||
* again and will be stuck in an endless loop.
|
* 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)
|
device_get_uclass_id(dev) == UCLASS_POWER_DOMAIN)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user