Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Pugliese and committed by
Greg Kroah-Hartman
644f6a12 c654ecbb

+7
+7
drivers/usb/host/hwa-hc.c
··· 161 161 usb_hcd->uses_new_polling = 1; 162 162 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); 163 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 171 result = 0; 165 172 out: 166 173 mutex_unlock(&wusbhc->mutex);