David Brownell wrote:
Well, I'd really like to figure out why this is happening.Me too. Happens on both a Red Hat 7.2 and 8.0 box, but not on a 7.3 machine. If I get a chance I'll try to track this down further.Happened on multiple RH 7.3 boxes for me. But not all the time, and maybe not on 2.5.44 since I've not used it for much yet.
It happens every time on my RH 7.3 box, kernels 2.5.40 - 2.5.44 w/ both UHCI (82371AB/EB/MB) and OHCI (NEC rev. 41). I didn't test 2.5.34-2.5.39 yet but I can if that would be useful.
This patch seems to keep khubd alive with 2.5.44. However, I get the following when I plug in a device:
Oct 19 21:34:02 hal9001 kernel: drivers/usb/core/hub.c: new USB device 00:0b.0-1.4, assigned address 3
Oct 19 21:34:02 hal9001 /etc/hotplug/usb.agent: Bad USB agent invocation
Oct 19 21:34:05 hal9001 /etc/hotplug/usb.agent: Setup ov511 for USB product 5a9/511/100
Oct 19 21:34:05 hal9001 kernel: drivers/usb/media/ov511.c: USB OV511 video device found
Oct 19 21:34:05 hal9001 kernel: drivers/usb/media/ov511.c: model: D-Link DSB-C300
Oct 19 21:34:06 hal9001 kernel: drivers/usb/media/ov511.c: Sensor is an OV76BE
Oct 19 21:34:06 hal9001 kernel: drivers/usb/media/ov511.c: Device registered on minor 0
Oct 19 21:34:06 hal9001 kernel: drivers/usb/core/usb.c: registered new driver ov511
Oct 19 21:34:06 hal9001 kernel: drivers/usb/media/ov511.c: v1.62 for Linux 2.5 : ov511 USB Camera Driver
As you can see, there's a 3 second delay between assigning of the address and the calling of probe(). I've never seen that before.
This is with RedHat's hotplug-2002_04_01-3. I had been using hotplug-2002_08_26-1 previously but it had problems when shutting down the system (I can go into further detail on that if you want, Greg).
Shortly afterward I disconnected a hub with an attached mouse and keyboard, and saw these messages:
Oct 19 21:37:20 hal9001 kernel: [d7985300] link (17985242) element (17986060)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986060] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=7 DT1 EndPt=1 Dev=4, PID=69(IN) (buf=17b23000)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 kernel: [d7985240] link (179850f2) element (17986090)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986090] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=3 DT1 EndPt=1 Dev=5, PID=69(IN) (buf=17b23080)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 kernel: [d79852a0] link (179852d2) element (17986090)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986090] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=3 DT0 EndPt=1 Dev=5, PID=69(IN) (buf=17b23080)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 kernel: [d79852d0] link (179850f2) element (17986060)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986060] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=7 DT0 EndPt=1 Dev=4, PID=69(IN) (buf=17b23000)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 kernel: [d7985240] link (17985302) element (17986060)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986060] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=7 DT1 EndPt=1 Dev=4, PID=69(IN) (buf=17b23000)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 kernel: [d7985300] link (179850f2) element (17986090)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986090] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=3 DT1 EndPt=1 Dev=5, PID=69(IN) (buf=17b23080)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 kernel: drivers/usb/core/usb.c: USB disconnect on device 3
Oct 19 21:37:20 hal9001 kernel: drivers/usb/core/usb.c: USB disconnect on device 4
Oct 19 21:37:20 hal9001 kernel: drivers/usb/core/usb.c: USB disconnect on device 5
Oct 19 21:37:20 hal9001 kernel: [d79852a0] link (179850f2) element (17986090)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986090] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=3 DT0 EndPt=1 Dev=5, PID=69(IN) (buf=17b23080)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 kernel: [d7985240] link (179850f2) element (17986060)
Oct 19 21:37:20 hal9001 kernel: 0: [d7986060] link (00000001) e0 SPD LS IOC Stalled CRC/Timeo Length=7ff MaxLen=3 DT1 EndPt=1 Dev=5, PID=69(IN) (buf=17b23080)
Oct 19 21:37:20 hal9001 kernel:
Oct 19 21:37:20 hal9001 /sbin/hotplug: no runnable /etc/hotplug/input.agent is installed
Oct 19 21:37:20 hal9001 /sbin/hotplug: no runnable /etc/hotplug/input.agent is installed
and after that I only got the "new USB device...assigned address..." line when connecting devices. At least that's more than I get without the patch, though. :)
--
Mark McClelland
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel