diff options
author | Ankit Pashiney <apashiney@nvidia.com> | 2012-06-06 15:50:05 -0700 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-06-07 05:37:43 -0700 |
commit | 7ca2a5f1d750b580f5093c2c6895772b32d30f66 (patch) | |
tree | 15c528bbaf4ca9e55b110cd7cbb1b3dccc3ebcee /drivers | |
parent | b46bcc0a3da47431f2711c3d63e9507cfab18ecd (diff) |
Revert "usb: otg: tegra: change logic for 'from' in irq_work"
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/otg/tegra-otg.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c index b5106faf68bd..2719a62f873d 100644 --- a/drivers/usb/otg/tegra-otg.c +++ b/drivers/usb/otg/tegra-otg.c @@ -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); } |