]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
usb: otg: tegra: enable vbus during LP0 resume
authorRohith Seelaboyina <rseelaboyina@nvidia.com>
Mon, 24 Jun 2013 05:19:09 +0000 (10:49 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:33:21 +0000 (13:33 -0700)
enable vbus while resuming from LP0,when ID is low
and vbus is turned before going to LP0

Bug 1298859

Change-Id: I25c03673af623c97fab53710c6de1adfc2f724b3
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/242832
(cherry picked from commit 0162d380221761e5d187521264c2d7f884af335f)
Reviewed-on: http://git-master/r/250671
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/phy/tegra-otg.c

index 64b2bdd7d22d814a4b18988540ad074d5df400e5..d8bb4f7c544c4d338e5cb7c06011408deed4b7d8 100644 (file)
@@ -912,6 +912,9 @@ static void tegra_otg_resume(struct device *dev)
                mutex_lock(&tegra->irq_work_mutex);
        }
 
+       if (tegra->turn_off_vbus_on_lp0 && !(tegra->int_status & USB_ID_STATUS))
+               tegra_otg_vbus_enable(tegra->vbus_reg, 1);
+
        /* Call work to set appropriate state */
        schedule_work(&tegra->work);