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>
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);