aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/hwa-hc.c
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-08-08 16:25:47 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-12 18:41:09 -0400
commit644f6a121af0aee94b243d33cfe38d6d474e8cbc (patch)
treee21ddf727c1a887f8b561c032787e01d5ec7acbb /drivers/usb/host/hwa-hc.c
parentc654ecbbfefbeec8fbf202e117364bff48ecaea3 (diff)
HWA: avoid constant suspend and resume on the root hub
Prevent the USB core from suspending the HWA root hub since bus_suspend and bus_resume are not yet supported. Otherwise the PM system will chew up CPU time constantly attempting to suspend and resume the root hub but never succeeding. Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/hwa-hc.c')
-rw-r--r--drivers/usb/host/hwa-hc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/host/hwa-hc.c b/drivers/usb/host/hwa-hc.c
index 483990c716aa..5b86ffb88f1c 100644
--- a/drivers/usb/host/hwa-hc.c
+++ b/drivers/usb/host/hwa-hc.c
@@ -161,6 +161,13 @@ static int hwahc_op_start(struct usb_hcd *usb_hcd)
161 usb_hcd->uses_new_polling = 1; 161 usb_hcd->uses_new_polling = 1;
162 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); 162 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags);
163 usb_hcd->state = HC_STATE_RUNNING; 163 usb_hcd->state = HC_STATE_RUNNING;
164
165 /*
166 * prevent USB core from suspending the root hub since
167 * bus_suspend and bus_resume are not yet supported.
168 */
169 pm_runtime_get_noresume(&usb_hcd->self.root_hub->dev);
170
164 result = 0; 171 result = 0;
165out: 172out:
166 mutex_unlock(&wusbhc->mutex); 173 mutex_unlock(&wusbhc->mutex);