diff options
author | Venkat Moganty <vmoganty@nvidia.com> | 2010-09-04 18:46:46 -0700 |
---|---|---|
committer | Yu-Huan Hsu <yhsu@nvidia.com> | 2010-10-05 14:51:10 -0700 |
commit | f53faa616294450f1ed05b5bfd249b577b709399 (patch) | |
tree | 1e6913840d4ec6a576d574af7bb1727e2d757911 /drivers | |
parent | 80833ca384f1a58a207f98bba66905c6e0caac97 (diff) |
[usb-host]Remove controller restart in host mode during resume
During resume from LP0 controller is getting restarted in host mode due to this
hcd state is getting changed from the suspend state. Controller state should not
be changed for host mode. Fixed this to restart the controller only in OTG mode.
Bug 724437
(cherry picked from commit cbea530301ae3d9a4a7271d11c819bfc8de8f892)
Change-Id: Idc2897a2790087e00ee66e30fea734c9d117029e
Reviewed-on: http://git-master/r/7833
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 610292a01611..54c9ab28b580 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -695,7 +695,8 @@ static int tegra_ehci_resume(struct platform_device * pdev) if (!ehci->host_resumed) { tegra_ehci_power_up(hcd); - if(!pdata->fast_wakeup) + /* restart the controller in OTG mode only */ + if(pdata->otg_mode) tegra_ehci_restart(hcd); } |