projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
phy-sun4i-usb: Only check vbus-det on power-on on boards with vbus-det
[cascardo/linux.git]
/
drivers
/
phy
/
phy-sun4i-usb.c
diff --git
a/drivers/phy/phy-sun4i-usb.c
b/drivers/phy/phy-sun4i-usb.c
index
27ae89e
..
e2eb688
100644
(file)
--- a/
drivers/phy/phy-sun4i-usb.c
+++ b/
drivers/phy/phy-sun4i-usb.c
@@
-328,7
+328,8
@@
static int sun4i_usb_phy_power_on(struct phy *_phy)
return 0;
/* For phy0 only turn on Vbus if we don't have an ext. Vbus */
- if (phy->index == 0 && data->vbus_det)
+ if (phy->index == 0 && sun4i_usb_phy0_have_vbus_det(data) &&
+ data->vbus_det)
return 0;
ret = regulator_enable(phy->vbus);