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:
Tom Rini
2022-12-12 08:59:13 -05:00
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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;
}
+4
View File
@@ -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++) {