aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2013-03-17 14:23:21 -0400
committerFelipe Balbi <balbi@ti.com>2013-03-21 08:20:28 -0400
commit44a50d088aad18a1a2709091bf25a108f967f8c9 (patch)
tree1d2d516e8a86fd30d21469f9dc8e66cb4c061144
parent75f32ec1de7a4c905ba2007972d981f96c977eb2 (diff)
usb: phy: twl4030-usb: don't enable PHY during init
There is no need to do it, otg.set_suspend(false) (which itself comes from runtime_pm OMAP glue calls) will enable it later anyway. This used to be the place where things were enabled if booted with cable connected before runtime_pm conversion, but now can be dropped. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/phy/phy-twl4030-usb.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/usb/phy/phy-twl4030-usb.c b/drivers/usb/phy/phy-twl4030-usb.c
index 1986c782346f..4ad234cc6c9e 100644
--- a/drivers/usb/phy/phy-twl4030-usb.c
+++ b/drivers/usb/phy/phy-twl4030-usb.c
@@ -515,19 +515,17 @@ static int twl4030_usb_phy_init(struct usb_phy *phy)
515 struct twl4030_usb *twl = phy_to_twl(phy); 515 struct twl4030_usb *twl = phy_to_twl(phy);
516 enum omap_musb_vbus_id_status status; 516 enum omap_musb_vbus_id_status status;
517 517
518 status = twl4030_usb_linkstat(twl); 518 /*
519 if (status > 0) { 519 * Start in sleep state, we'll get called through set_suspend()
520 if (status == OMAP_MUSB_VBUS_OFF || 520 * callback when musb is runtime resumed and it's time to start.
521 status == OMAP_MUSB_ID_FLOAT) { 521 */
522 __twl4030_phy_power(twl, 0); 522 __twl4030_phy_power(twl, 0);
523 twl->asleep = 1; 523 twl->asleep = 1;
524 } else {
525 __twl4030_phy_resume(twl);
526 twl->asleep = 0;
527 }
528 524
525 status = twl4030_usb_linkstat(twl);
526 if (status > 0)
529 omap_musb_mailbox(twl->linkstat); 527 omap_musb_mailbox(twl->linkstat);
530 } 528
531 sysfs_notify(&twl->dev->kobj, NULL, "vbus"); 529 sysfs_notify(&twl->dev->kobj, NULL, "vbus");
532 return 0; 530 return 0;
533} 531}