Commit dfc9a24f authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB: root hub polling stops after suspend

parent 0b2800e8
...@@ -483,7 +483,7 @@ static void rh_report_status (unsigned long ptr) ...@@ -483,7 +483,7 @@ static void rh_report_status (unsigned long ptr)
{ {
struct urb *urb; struct urb *urb;
struct usb_hcd *hcd; struct usb_hcd *hcd;
int length; int length = 0;
unsigned long flags; unsigned long flags;
urb = (struct urb *) ptr; urb = (struct urb *) ptr;
...@@ -499,7 +499,9 @@ static void rh_report_status (unsigned long ptr) ...@@ -499,7 +499,9 @@ static void rh_report_status (unsigned long ptr)
return; return;
} }
length = hcd->driver->hub_status_data (hcd, urb->transfer_buffer); if (!HCD_IS_SUSPENDED (hcd->state))
length = hcd->driver->hub_status_data (
hcd, urb->transfer_buffer);
/* complete the status urb, or retrigger the timer */ /* complete the status urb, or retrigger the timer */
spin_lock (&hcd_data_lock); spin_lock (&hcd_data_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment