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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:35:08 +0000 (14:35 +0100)
commit8ebf4043186fe8f7a275cf4e241f39105556e3ef
treee72ba9b4167a4e9f98cdd2d88161b5f4b8584fd9
parent81363d1b2071e404c261b6f38265ba3b90a0c556
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci-ring.c