]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
usb: xhci: tegra: fix wake from LP1
authorJoy Wang <joyw@nvidia.com>
Tue, 2 Dec 2014 06:35:07 +0000 (14:35 +0800)
committerAshutosh Jha <ajha@nvidia.com>
Thu, 4 Dec 2014 06:20:12 +0000 (22:20 -0800)
We have VDD_CORE on when LP1. xusb use padctl interrupt to
wake from LP1. Keep interrupt enabled when system suspend.

Bug 1583860

Change-Id: I276594d69a051ea84034c32015589a6574ded7f1
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/658281
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Tested-by: Ashutosh Jha <ajha@nvidia.com>
drivers/usb/host/xhci-tegra.c

index 4a55c63cda7eb3174ab38ff2b25d0832c1f87765..f6f28b1cf7dc3fad5d9625c78f988e193d1919eb 100644 (file)
@@ -3750,7 +3750,6 @@ tegra_xhci_suspend(struct platform_device *pdev,
 {
        struct tegra_xhci_hcd *tegra = platform_get_drvdata(pdev);
        struct xhci_hcd *xhci = tegra->xhci;
-       int host_ports = get_host_controlled_ports(tegra);
        int ret = 0;
        int pad = 0;
 
@@ -3769,9 +3768,6 @@ tegra_xhci_suspend(struct platform_device *pdev,
        }
        mutex_unlock(&tegra->sync_lock);
 
-       tegra_xhci_ss_wake_on_interrupts(host_ports, false);
-       tegra_xhci_hs_wake_on_interrupts(host_ports, false);
-
        /* enable_irq_wake for ss ports */
        ret = enable_irq_wake(tegra->padctl_irq);
        if (ret < 0) {