usb: ehci: tegra: fix HSIC bus reset issues.
Vinod Atyam [Fri, 8 Jun 2012 09:24:06 +0000 (14:24 +0530)]
Corrected wIndex in the hub control to call the bus reset sequence properly.

Change-Id: I7d410262d55ad4ad5acfe72e8725616238f863ac
(cherry picked from commit fee4a582584e24e93b9c43446a0d223664d70e6b)
(cherry picked from commit f8b775561696979ad08f53ea3b3c571bc07734bb)
Reviewed-on: http://git-master/r/107593
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/usb/host/ehci-tegra.c

index 98f3d51..c0574ee 100644 (file)
@@ -262,7 +262,7 @@ static int tegra_ehci_hub_control(
                                mdelay(4);
                                tegra_usb_phy_post_suspend(tegra->phy);
                        } else if (wValue == USB_PORT_FEAT_RESET) {
-                               if (ehci->reset_done[0] && wIndex == 0)
+                               if (wIndex == 1)
                                        tegra_usb_phy_bus_reset(tegra->phy);
                        } else if (wValue == USB_PORT_FEAT_POWER) {
                                if (wIndex == 1)