]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: decrease schedule-status poll timeout
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 18 Mar 2013 16:04:54 +0000 (12:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:05:58 +0000 (16:05 -0700)
commit010adf782f7190b7c5d6e387933a39a0efe77cd2
tree7870d6ddb4ca6a5cee7d5e2923ddecd0b3c7305a
parent36807355cb196d80553e203df8b28c63a36c8d50
USB: EHCI: decrease schedule-status poll timeout

This patch (as1657) decreases the timeout used by ehci-hcd for polling
the async and periodic schedule statuses.  The timeout is currently
set to 20 ms, which is much too high.  Controllers should always
update the schedule status within one or two ms of being told to do
so; if they don't then something is wrong.

Furthermore, bug reports have shown that sometimes controllers
(particularly those made by VIA) don't update the status bit at all,
even when the schedule does change state.  When this happens, polling
for 20 ms would cause an unnecessarily long delay.

The delay is reduced to somewhere between 2 and 4 ms, depending on the
slop allowed by the kernel's high-res timers.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-timer.c