On 11 Feb 2004, Paul Fulghum wrote: > On Wed, 2004-02-11 at 10:10, Alan Stern wrote: > > Is there another device on > > the system sharing the same IRQ line? > > Yes, the USB controller shares with the SCSI controller, > which explains the repeated IRQ status messages. > > There is no way to move the USB IRQ on this machine > (USB and SCSI are motherboard devices hardwired > to the same PCI IRQ). > > The behavior by the patched USB driver is OK > for this system, where all ports of the > controller are tied OC. You get one interrupt for > the bogus RD, then never resume.
Okay, thanks for the information. I ran a little test of my own. Turning off the portion of the hub driver that intializes a port upon a new connection means that plugging in a device will simulate the effect of your always-on hardwired OC. When I did that, plugging in the first device caused the usual RD interrupt. Plugging in a second device did _not_ cause an interrupt. (This was on a PIIX4 system.) Apparently only one RD interrupt will be generated while the controller is suspended. So relying on RD to detect that a new device has been plugged in won't work for these badly-wired motherboards. I've decided to change the way the driver handles waking up when a device is attached. The Resume Detect feature appears to be intended as a Wake-on-USB feature; it kicks in whenever there's an attach, unplug, or resume-request event. So although it can be used, it's not entirely appropriate for this "activate the controller when something gets attached" scheme. Instead I will monitor the port statuses during the periodic root-hub status requests. That's how the hub driver learns about new connections, and if it works there it should work here too, regardless of any RD interrupts. These broken motherboards will end up losing only the ability to do Wake-on-USB, which isn't implemented yet anyway. Alan Stern ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel