summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRakesh Bodla <rbodla@nvidia.com>2011-09-02 16:51:29 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-09-02 18:26:55 -0700
commit9ed1d813eda59525e4292a0c4b88862a50390c58 (patch)
treeac41bf89a087c13ecd8e6d277b0571dfaa3f8fa6 /drivers
parent68693f61f1e6a6bc9b33862a9755babc685dbead (diff)
usb: host: tegra: correct phy selective suspend
Corrected the condition which checks whether phy should be powered off or not, depending on the status of port connection. Bug 867985 Change-Id: Id5a348b996d9938ffd0830f6ea44e7cc320f0364 Reviewed-on: http://git-master/r/50501 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ehci-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index a53963ee46d3..3b3ce418cf92 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -620,7 +620,7 @@ static int tegra_ehci_bus_suspend(struct usb_hcd *hcd)
error_status = ehci_bus_suspend(hcd);
if (!error_status && tegra->power_down_on_bus_suspend) {
port_status = ehci_readl(ehci, &ehci->regs->port_status[0]);
- if (!port_status & PORT_CONNECT) {
+ if (!(port_status & PORT_CONNECT)) {
tegra_usb_suspend(hcd, false);
tegra->bus_suspended = 1;
}