usb: ehci: tegra: Add phy pre_suspend callback.
Raj Jayaraman [Thu, 4 Oct 2012 22:33:45 +0000 (15:33 -0700)]
Bug 1054808

Change-Id: I1de98ced6e8e30794907797bba05ad13190597a9
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/147305
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

drivers/usb/host/ehci-tegra.c

index 27a0b13..bf1289a 100644 (file)
@@ -273,6 +273,10 @@ static int tegra_ehci_hub_control(
                        return retval;
                }
                break;
+       case SetPortFeature:
+               if (wValue == USB_PORT_FEAT_SUSPEND)
+                       tegra_usb_phy_pre_suspend(tegra->phy);
+               break;
        }
 
        /* handle ehci hub control request */