usb: host: tegra: Fix SetPortFeature PORT_SUSPEND
authorBenoit Goby <benoit@android.com>
Wed, 19 Jan 2011 03:38:23 +0000 (19:38 -0800)
committerBenoit Goby <benoit@android.com>
Wed, 19 Jan 2011 03:40:17 +0000 (19:40 -0800)
This fixes a regression where hubs cannot detect new devices once they
have been auto-suspended.

Change-Id: I4b3efcaa9634b9a912060e438527000bbc83dc32
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/host/ehci-tegra.c

index db61c60ffbab72115a2e1308c9a60d0e7e7cda33..f781b02e53f0afef8333bd3d1a8e22feefd9e3ad 100644 (file)
@@ -129,6 +129,7 @@ static int tegra_ehci_hub_control(
                if (handshake(ehci, status_reg, PORT_SUSPEND,
                                                PORT_SUSPEND, 5000))
                        pr_err("%s: timeout waiting for PORT_SUSPEND\n", __func__);
+               set_bit((wIndex & 0xff) - 1, &ehci->suspended_ports);
                goto done;
        }