On Mon, 29 Dec 2003, Rogério Brito wrote: > Hi, Alan. > > Thank you very much for your feedback. I'm now excited that maybe I will > finally be able to use my USB drive with my computer to carry some > documents to my workplace!
Don't get too excited! It may take a while to get this working. It doesn't seem to be an easy problem. > Ok. I tried the patch you sent me and I put the dmesg log messages at > <http://www.ime.usp.br/~rbrito/usb/>. The old files are in the > subdirectory old of that directory, if you need them. Well, the problem didn't occur where I first thought it would. Try this patch instead of the earlier one and see what happens. > This time, I didn't disable the hotplug scripts, but right after I > booted in single user mode, I did the "echo 4 > /proc/driver/uhci/..." > command that you told me to use, before plugging the drive. It turns out that's not necessary. The problem occurs at a different level, I think. Anyway, your logs so far haven't contained any debugging information coming from that "echo 4..." command. > Oh, one more thing: I am using kernel stock 2.6.0 and the patch that you > sent me was applied with an offset of -11 lines. Is this a problem? No, it's not. > I suppose that that was the case because your tree is a bit more recent > than the kernel that I am using, right? Or it's got more testing stuff in it, or items that are still under development... Alan Stern --- 2.6/drivers/usb/core/hub.c.orig Fri Dec 19 10:55:07 2003 +++ 2.6/drivers/usb/core/hub.c Tue Dec 30 16:24:21 2003 @@ -855,6 +855,8 @@ wait_ms(HUB_DEBOUNCE_STEP); ret = hub_port_status(hub, port, &portstatus, &portchange); + dev_dbg(hubdev(hub), "port %d status %x change %x\n", + port+1, portstatus, portchange); if (ret < 0) return -1; @@ -893,7 +895,8 @@ port + 1, portstatus, portchange, portspeed (portstatus)); /* Clear the connection change status */ - clear_port_feature(hub, port + 1, USB_PORT_FEAT_C_CONNECTION); + i = clear_port_feature(hub, port + 1, USB_PORT_FEAT_C_CONNECTION); + deb_dbg(&hubstate->intf->dev, "clear C_CONNECTION = %d\n", i); /* Disconnect any existing devices under this port */ if (hub->children[port]) ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel