aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/otg/twl4030-usb.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2012-06-22 08:10:53 -0400
committerFelipe Balbi <balbi@ti.com>2012-06-25 07:08:42 -0400
commitc83a8542b5e3c5b30825955a68b1cc8bd24b122a (patch)
tree1cc3233f95af3c904defa6487d6f076bea0f9bdb /drivers/usb/otg/twl4030-usb.c
parentc9721438c009adf8e81d376839ed037c53b9b8d9 (diff)
usb: musb: move otg specific initializations from twl to glue
Moved otg specific state(OTG_STATE_B_IDLE, OTG_STATE_A_IDLE) initializations from twl to glue. These initializations are removed from twl4030 and twl6030 and moved to the mailbox API defined in glue. This is part of the cleanup in preparation to make use of usb2 phy driver. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/otg/twl4030-usb.c')
-rw-r--r--drivers/usb/otg/twl4030-usb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg/twl4030-usb.c
index a7b809e217ea..4d0d98bc40cd 100644
--- a/drivers/usb/otg/twl4030-usb.c
+++ b/drivers/usb/otg/twl4030-usb.c
@@ -251,7 +251,6 @@ static enum omap_musb_vbus_id_status
251{ 251{
252 int status; 252 int status;
253 enum omap_musb_vbus_id_status linkstat = OMAP_MUSB_UNKNOWN; 253 enum omap_musb_vbus_id_status linkstat = OMAP_MUSB_UNKNOWN;
254 struct usb_otg *otg = twl->phy.otg;
255 254
256 twl->vbus_supplied = false; 255 twl->vbus_supplied = false;
257 256
@@ -291,13 +290,6 @@ static enum omap_musb_vbus_id_status
291 290
292 spin_lock_irq(&twl->lock); 291 spin_lock_irq(&twl->lock);
293 twl->linkstat = linkstat; 292 twl->linkstat = linkstat;
294 if (linkstat == OMAP_MUSB_ID_GROUND) {
295 otg->default_a = true;
296 twl->phy.state = OTG_STATE_A_IDLE;
297 } else {
298 otg->default_a = false;
299 twl->phy.state = OTG_STATE_B_IDLE;
300 }
301 spin_unlock_irq(&twl->lock); 293 spin_unlock_irq(&twl->lock);
302 294
303 return linkstat; 295 return linkstat;