On 7/3/06, Alan Stern <[EMAIL PROTECTED]> wrote:
> > The part I forgot to mention is that usb-hub.c implements a magic
> > number of ten consecutive interrupt errors on a given hcd before it
> > starts aggressively resetting/downing hardware.
>
> Ah, okay.  That's different from what I thought you meant -- the "Nobody
> cared" message when the kernel disables an entire IRQ.

Sorry; the last aside question I asked confused things because it was
about the 'Nobody cared' message.  The rest of the email was in the
'magic ten retries' case.  I'd still like to know how to reenable a
killed IRQ line, or rmmod usbcore.  It would cut down significantly on
reboots while debugging.

> And by the way, your description above is pretty inaccurate.  That magic
> number of 10 in hub.c (not "usb-hub.c") doesn't apply to interrupt errors
> on a given hcd; it refers to error status in interrupt URBs for a given
> hub.

usb/core/hub.c, yes.  Typing from memory on a dying battery in an
airport. I'll endeavor to be more accurate when working from memory in
the future.

s/interrupt errors/urb errors processed in the interrupt handler/
but yes, you've sorted it.

> If you look more closely at what's really happening, you should find that
> it all makes sense.  You can't get -EPROTO status in URBs for devices that
> the kernel knows are disconnected, because the core won't even accept
> these URBs when they are submitted.  Also, khubd is a single thread so it
> can do only one thing at a time.  If it's busy with disconnect processing
> for one device, it can't suddenly start doing disconnect processing for a
> different device.

I didn't say I couldn't figure out what was happening, I said it was
suboptimal, and wanted to know if anyone realized this was happening.
The answer appears to be, "No, it's not intentional, yes we know it's
happening, a 'fix' is more pain than would be justified', correct?

Monty

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to