xhci: Better debugging for critical host errors.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 1 Dec 2011 22:50:30 +0000 (14:50 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 Jan 2012 01:05:30 +0000 (17:05 -0800)
commit9258c0b26b7d2e819b157ec394edaf7a5853cebb
tree74f102d6342f5327746adf3084e62adeb2f8e1ea
parent79688acfb5e124fcf586add00af32a2a1a532c64
xhci: Better debugging for critical host errors.

When a host controller gives a bad event TRB, we should print out the
contents of the TRB as a warning so that users don't have to recompile
their kernel to get information about what went wrong.  Also, print out
the event ring if they have xHCI debugging turned on, since previous
events can often explain what happened before the bad TRB occurred.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-ring.c