aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r--drivers/usb/host/ehci-hcd.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 68dd1c99b1f5..ab4a769a4104 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -371,24 +371,6 @@ static void ehci_shutdown(struct usb_hcd *hcd)
371 hrtimer_cancel(&ehci->hrtimer); 371 hrtimer_cancel(&ehci->hrtimer);
372} 372}
373 373
374static void ehci_port_power (struct ehci_hcd *ehci, int is_on)
375{
376 unsigned port;
377
378 if (!HCS_PPC (ehci->hcs_params))
379 return;
380
381 ehci_dbg (ehci, "...power%s ports...\n", is_on ? "up" : "down");
382 for (port = HCS_N_PORTS (ehci->hcs_params); port > 0; )
383 (void) ehci_hub_control(ehci_to_hcd(ehci),
384 is_on ? SetPortFeature : ClearPortFeature,
385 USB_PORT_FEAT_POWER,
386 port--, NULL, 0);
387 /* Flush those writes */
388 ehci_readl(ehci, &ehci->regs->command);
389 msleep(20);
390}
391
392/*-------------------------------------------------------------------------*/ 374/*-------------------------------------------------------------------------*/
393 375
394/* 376/*
@@ -1184,9 +1166,6 @@ static int __maybe_unused ehci_resume(struct usb_hcd *hcd, bool hibernated)
1184 ehci->rh_state = EHCI_RH_SUSPENDED; 1166 ehci->rh_state = EHCI_RH_SUSPENDED;
1185 spin_unlock_irq(&ehci->lock); 1167 spin_unlock_irq(&ehci->lock);
1186 1168
1187 /* here we "know" root ports should always stay powered */
1188 ehci_port_power(ehci, 1);
1189
1190 return 1; 1169 return 1;
1191} 1170}
1192 1171