summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2011-07-04 11:14:19 +0530
committerManish Tuteja <mtuteja@nvidia.com>2011-07-06 03:28:16 -0700
commit868eff5bd918be16ce7181a9f7efeb3d061370c7 (patch)
tree8b4c311f74e2067dca075c806a405d550156cf15
parent894ef272deec269ccbf1caf2b9a5e4ce3bbf7a0f (diff)
arm: tegra: otg: Remove host stop
Remove the stop host call when device is entering suspend. Need to be detect the host device even after the device exits from LP state. Bug 835678 Change-Id: Icf32c828078bb0f42237f49373af25d0c768a301 Reviewed-on: http://git-master/r/39506 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com>
-rw-r--r--drivers/usb/otg/tegra-otg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c
index 893b897f5957..28e8bd0c2063 100644
--- a/drivers/usb/otg/tegra-otg.c
+++ b/drivers/usb/otg/tegra-otg.c
@@ -384,12 +384,9 @@ static int tegra_otg_suspend(struct platform_device *pdev, pm_message_t state)
tegra_otg->intr_reg_data = readl(tegra_otg->regs + USB_PHY_WAKEUP);
clk_disable(tegra_otg->clk);
- if (from == OTG_STATE_A_HOST)
- tegra_stop_host(tegra_otg);
- else if (from == OTG_STATE_B_PERIPHERAL && otg->gadget)
+ if (from == OTG_STATE_B_PERIPHERAL && otg->gadget)
usb_gadget_vbus_disconnect(otg->gadget);
- otg->state = OTG_STATE_A_SUSPEND;
tegra_otg_disable_clk();
return 0;
}