Re: USB OOPS 2.6.25-rc2-git1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Wednesday, March 5, 2008 - 10:04 am

On Tue, 4 Mar 2008, David Brownell wrote:


This seems like a good subject to be paranoid about.  :-)


It looks very good.  Do you think there should be an "else" clause for 
the "if ((status & STS_IAA) || !(cmd & CMD_IAAD))" test?  That's the 
pathway one would observe with a controller that implements IAA very 
slowly or not at all.  There doesn't seem to be anything more the HCD 
can do about it, but you could print a log message.


There's still Bugzilla #8692.  That one appears to be an individual
hardware failure, though, not a systematic bug.


There is one place where ehci-hcd.c doesn't make that guarantee:

@@ -757,7 +757,7 @@ static void unlink_async (struct ehci_hcd *eh
 static void unlink_async (struct ehci_hcd *ehci, struct ehci_qh *qh)
 {
 	/* failfast */
-	if (!HC_IS_RUNNING(ehci_to_hcd(ehci)->state))
+	if (!HC_IS_RUNNING(ehci_to_hcd(ehci)->state) && ehci->reclaim)
 		end_unlink_async(ehci);
 
 	/* if it's not linked then there's nothing to do */

But if you take out the WARN_ON at the start of end_unlink_async then 
this isn't needed.

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 8:19 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Feb 19, 11:49 am)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Tue Feb 19, 12:31 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 2:58 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Miller, (Tue Feb 19, 3:24 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 3:28 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 4:04 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Feb 19, 5:19 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Feb 19, 5:32 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Miller, (Tue Feb 19, 6:40 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Feb 20, 9:10 am)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Wed Feb 20, 1:33 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Feb 20, 2:16 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 2:24 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 2:56 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Feb 20, 3:33 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 3:54 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Wed Feb 20, 5:25 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 5:53 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Thu Feb 21, 8:56 am)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Thu Feb 21, 9:15 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Mon Feb 25, 2:13 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Mar 4, 9:15 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Mar 5, 10:04 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Mar 5, 10:39 am)