diff options
author | Ajay Gupta <ajayg@nvidia.com> | 2013-05-31 10:40:19 -0700 |
---|---|---|
committer | Harshada Kale <hkale@nvidia.com> | 2013-06-03 04:08:18 -0700 |
commit | 18b7fd1a4deb8b77b589f03b5d4e1cb10645efac (patch) | |
tree | af706aa9ec8719a1e7fdd6df3ad98c801f23c574 /drivers | |
parent | 9b0292923e23f6ade3f515fa180f08ef4f14654c (diff) |
usb: xhci: tegra: set SNPS as owner to save power
Saves power when no HS devices are connected.
Bug 1275290
Change-Id: Ic5f75411ea7e888fc150459a03b004fbc034d7e0
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/234625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/xhci-tegra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index 66ace797213d..d740fb3d0713 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c @@ -2367,6 +2367,8 @@ done: if (xhci->main_hcd == hcd) { utmi_phy_pad_disable(); utmi_phy_iddq_override(true); + /* set port ownership to SNPS to save power */ + tegra_xhci_release_port_ownership(tegra, true); } else if (xhci->shared_hcd == hcd) { /* save leakage power when SS not in use. * This is also done when fw mbox message is received for freq @@ -2413,6 +2415,7 @@ static int tegra_xhci_bus_resume(struct usb_hcd *hcd) if (xhci->main_hcd == hcd && tegra->usb2_rh_suspend) { utmi_phy_pad_enable(); utmi_phy_iddq_override(false); + tegra_xhci_release_port_ownership(tegra, false); } else if (xhci->shared_hcd == hcd && tegra->usb3_rh_suspend) { /* clear ovrd bits */ tegra_xhci_rx_idle_mode_override(tegra, false); |