arm: tegra: otg: Remove host stop
Suresh Mangipudi [Mon, 4 Jul 2011 05:44:19 +0000 (10:44 +0530)]
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

Reviewed-on: http://git-master/r/39506
(cherry picked from commit 868eff5bd918be16ce7181a9f7efeb3d061370c7)

Original-Change-Id: I4b4150925f1c19463a58c73ca3dfc5c900bf83cf
Reviewed-on: http://git-master/r/44307
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Tested-by: Suresh Mangipudi <smangipudi@nvidia.com>
Tested-by: Bala Murali Krishna <balam@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R322e43e3f42663091fb9b1e74f7c89877d99d6d5

drivers/usb/otg/tegra-otg.c

index ed02dea..3c1f166 100644 (file)
@@ -387,12 +387,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;
 }