]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Fri, 7 Jun 2013 19:52:22 +0000 (12:52 -0700)
commit33edcea352d7c7e601a61e987b029620fed0ca4d
treeb4aa0c0afd0601f645f86f74701fb290b0b1d56d
parentaa4ccf7a840cadad4d835869ea96d24ecca42c40
USB: fix latency in uhci-hcd and ohci-hcd

commit e1944017839d7dfbf7329fac4bdec8b4050edf5e upstream.

Commits c44b225077bb1fb25ed5cd5c4f226897b91bedd4 (UHCI: implement new
semantics for URB_ISO_ASAP) and
6a41b4d3fe8cd4cc95181516fc6fba7b1747a27c (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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-hcd.c
drivers/usb/host/uhci-q.c