]> git.baikalelectronics.ru Git - kernel.git/commit
USB: fix latency in uhci-hcd and ohci-hcd
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 14 May 2013 17:57:19 +0000 (13:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 May 2013 17:42:45 +0000 (13:42 -0400)
commit7efe5ab2ddd0aad8d02725b15f6fa79ab3f6bb37
treeb08bcd9a27c99136da80968ed04820dac8a99dcb
parenta00bd457c4b09b769f39883de196cee21f527f05
USB: fix latency in uhci-hcd and ohci-hcd

Commits d31742a05e7daaef70368ec5b8c5c69d887dfea8 (UHCI: implement new
semantics for URB_ISO_ASAP) and
b7c9bdc70a868cffef96538306f7460c7f682ea2 (OHCI: implement new
semantics for URB_ISO_ASAP) increased the latency for isochronous URBs
in uhci-hcd and ohci-hcd respectively to 2 milliseconds, in an
attempt to avoid underruns.  It turns out that not only was this
unnecessary -- 1-ms latency works okay -- it also causes problems with
certain application loads such as real-time audio.

This patch changes the latency for both drivers back to 1 ms.

This should be applied to -stable kernels going back to 3.8.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Joe Rayhawk <jrayhawk@fairlystable.org>
CC: Clemens Ladisch <clemens@ladisch.de>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-hcd.c
drivers/usb/host/uhci-q.c