]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Report max device limit when Enable Slot command fails.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 8 May 2014 16:25:59 +0000 (19:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 May 2014 01:03:25 +0000 (10:03 +0900)
commit2d4b00e8dd7fe1209a7d67aa03d612b3d6a65619
treeeebfbf303c8c30ade253b1cbd418350aa53b96b1
parent75335cba6f63aada47f9b90b9c2c04bfcadbdea3
xhci: Report max device limit when Enable Slot command fails.

xHCI host controllers may only support a limited number of device slot
IDs, which is usually far less than the theoretical maximum number of
devices (255) that the USB specifications advertise.  This is
frustrating to consumers that expect to be able to plug in a large
number of devices.

Add a print statement when the Enable Slot command fails to show how
many devices the host supports.  We can't change hardware manufacturer's
design decisions, but hopefully we can save customers a little bit of
time trying to debug why their host mysteriously fails when too many
devices are plugged in.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-by: Amund Hov <Amund.Hov@silabs.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c