USB: EHCI: defer reclamation of siTDs
commit4c9e0f8db0f379ba360594dc057efc8202155697
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 8 Apr 2010 20:56:37 +0000 (8 16:56 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:29 +0000 (12 15:02 -0700)
treea465d24c32c1da019b2c7be9cbad57f41bcec2ba
parent3e7ad8ed979ce9e3ad897dd87c50bf577966f89c
USB: EHCI: defer reclamation of siTDs

commit 0e5f231bc16ff9910882fa5b9d64d80e7691cfab upstream.

This patch (as1369) fixes a problem in ehci-hcd.  Some controllers
occasionally run into trouble when the driver reclaims siTDs too
quickly.  This can happen while streaming audio; it causes the
controller to crash.

The patch changes siTD reclamation to work the same way as iTD
reclamation: Completed siTDs are stored on a list and not reused until
at least one frame has passed.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-mem.c
drivers/usb/host/ehci-sched.c
drivers/usb/host/ehci.h