Merge tag 'u-boot-stm32-20221212' of https://source.denx.de/u-boot/custodians/u-boot-stm
phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply dm: pmic: ignore disabled node in pmic_bind_children
This commit is contained in:
@@ -375,7 +375,7 @@ static int stm32_usbphyc_phy_power_off(struct phy *phy)
|
||||
return 0;
|
||||
|
||||
if (usbphyc_phy->vbus) {
|
||||
ret = regulator_set_enable(usbphyc_phy->vbus, false);
|
||||
ret = regulator_set_enable_if_allowed(usbphyc_phy->vbus, false);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,10 @@ int pmic_bind_children(struct udevice *pmic, ofnode parent,
|
||||
node_name = ofnode_get_name(node);
|
||||
|
||||
debug("* Found child node: '%s'\n", node_name);
|
||||
if (!ofnode_is_enabled(node)) {
|
||||
debug(" - ignoring disabled device\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
child = NULL;
|
||||
for (info = child_info; info->prefix && info->driver; info++) {
|
||||
|
||||
Reference in New Issue
Block a user