Re: USB Serial device disconnect causes IRQ disable after using ehci controller halted

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Tuesday, August 26, 2008 - 2:14 pm

Karsten and Dave:

It looks like the logic in ehci-hcd's handshake_on_error_set_halt() 
needs to be revisited.

On Tue, 26 Aug 2008, amruth wrote:


...

The line above was a debugging message added specially for this test.  
The controller wasn't really halted, but hcd->state was set to 
HC_STATE_HALTED.


Simply setting hcd->state to HC_STATE_HALTED isn't a good idea,
especially in cases like this where the controller really _isn't_
halted.  Here it was still generating IRQs, leading to the "nobody
cared" problem on the last line of the log.

While it certainly would be a good idea to prevent the handshake 
failures from occurring in the first place -- Dave, aren't you working 
on a patch for that? -- we should also make sure that when they do 
occur, the controller gets reset properly.  And an error message should 
be printed in the log.

Alan Stern

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

Messages in current thread:
USB Serial device disconnect causes IRQ disable, amruth, (Wed Aug 20, 12:34 pm)
Re: USB Serial device disconnect causes IRQ disable, Oliver Neukum, (Wed Aug 20, 1:23 pm)
Re: USB Serial device disconnect causes IRQ disable, Oliver Neukum, (Wed Aug 20, 10:19 pm)
USB Serial device disconnect causes IRQ disable, amruth, (Wed Aug 20, 11:03 pm)
Re: USB Serial device disconnect causes IRQ disable, Oliver Neukum, (Wed Aug 20, 11:09 pm)
USB Serial device disconnect causes IRQ disable, amruth, (Wed Aug 20, 11:18 pm)
Re: USB Serial device disconnect causes IRQ disable, Oliver Neukum, (Wed Aug 20, 11:28 pm)
Re: USB Serial device disconnect causes IRQ disable after ..., Alan Stern, (Tue Aug 26, 2:14 pm)