Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364756
b: refs/heads/master
c: 44a50d0
h: refs/heads/master
v: v3
  • Loading branch information
Grazvydas Ignotas authored and Felipe Balbi committed Mar 21, 2013
1 parent efaa2f9 commit 51fbcc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75f32ec1de7a4c905ba2007972d981f96c977eb2
refs/heads/master: 44a50d088aad18a1a2709091bf25a108f967f8c9
20 changes: 9 additions & 11 deletions trunk/drivers/usb/phy/phy-twl4030-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,19 +515,17 @@ static int twl4030_usb_phy_init(struct usb_phy *phy)
struct twl4030_usb *twl = phy_to_twl(phy);
enum omap_musb_vbus_id_status status;

status = twl4030_usb_linkstat(twl);
if (status > 0) {
if (status == OMAP_MUSB_VBUS_OFF ||
status == OMAP_MUSB_ID_FLOAT) {
__twl4030_phy_power(twl, 0);
twl->asleep = 1;
} else {
__twl4030_phy_resume(twl);
twl->asleep = 0;
}
/*
* Start in sleep state, we'll get called through set_suspend()
* callback when musb is runtime resumed and it's time to start.
*/
__twl4030_phy_power(twl, 0);
twl->asleep = 1;

status = twl4030_usb_linkstat(twl);
if (status > 0)
omap_musb_mailbox(twl->linkstat);
}

sysfs_notify(&twl->dev->kobj, NULL, "vbus");
return 0;
}
Expand Down

0 comments on commit 51fbcc2

Please sign in to comment.