]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: warn on unexpectedly active QH
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 20 Nov 2015 18:53:58 +0000 (13:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Dec 2015 18:44:19 +0000 (10:44 -0800)
commit7c7dccb181c928571a37ce475040bcec42ea0fc8
tree8f33df353e64b36f511faa3fecea62167554c94b
parent24787a1ad2de6925d9617261a808b9df6bcb9ddf
USB: EHCI: warn on unexpectedly active QH

This patch adds a new warning message to ehci-hcd.  The warning is
triggered whenever the driver finds that the hardware has set the
Active bit in a QH at a time when the driver expects the QH to be
completely idle.  Such bugs have been observed by users in the past,
and since they can lead to serious problems (such as inability to
unlink an URB that never completes), it would be good to know about
them when they occur.

This won't fix these bugs; that's a bigger job for a later patch.  But
success isn't guaranteed, since this depends on aspects of the
hardware which are not documented in the EHCI spec or for which the
spec's recommendations are clearly unworkable.  It therefore seems
worthwhile to check for these bugs proactively.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Michael Reutman <mreutman@epiqsolutions.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci.h