Revert "usb: otg: tegra: change logic for 'from' in irq_work"
Ankit Pashiney [Wed, 6 Jun 2012 22:50:05 +0000 (15:50 -0700)]
This reverts commit d92da78335899834f8f667eb7c865aaf47bdff48.

Change-Id: I433bacc1d2b0a57a49057895593eb30f8b410d45
Reviewed-on: http://git-master/r/106885
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
Tested-by: Ankit Pashiney <apashiney@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

drivers/usb/otg/tegra-otg.c

index b5106fa..2719a62 100644 (file)
@@ -260,15 +260,6 @@ static void irq_work(struct work_struct *work)
        else
                to = OTG_STATE_A_SUSPEND;
 
-       if (from != OTG_STATE_A_HOST) {
-               if (tegra->int_status & USB_VBUS_INT_STATUS) {
-                       if (status & USB_VBUS_STATUS)
-                               to = OTG_STATE_B_PERIPHERAL;
-                       else
-                               to = OTG_STATE_A_SUSPEND;
-               }
-       }
-
        spin_unlock_irqrestore(&tegra->lock, flags);
        tegra_change_otg_state(tegra, to);
 }