]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xhci: Don't warn on empty ring for suspended devices.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 18 Mar 2013 17:19:51 +0000 (10:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 20:53:53 +0000 (13:53 -0700)
commitcfc8f2cebe1dfda582e128c63d8cd6a1cebfe751
tree425e1486a8cff1bde1edf223386982be409e0a89
parentb241f9dc4c1f736711d8ea471de604a97807454f
xhci: Don't warn on empty ring for suspended devices.

commit a83d6755814e4614ba77e15d82796af0f695c6b8 upstream.

When a device attached to the roothub is suspended, the endpoint rings
are stopped.  The host may generate a completion event with the
completion code set to 'Stopped' or 'Stopped Invalid' when the ring is
halted.  The current xHCI code prints a warning in that case, which can
be really annoying if the USB device is coming into and out of suspend.

Remove the unnecessary warning.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Stephen Hemminger <stephen@networkplumber.org>
Cc: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c