From: Idruna <pa...@id...> - 2010-07-30 12:52:25
|
If I plug a hub into the Summit OTG port (even an un-powered hub), it works perfectly, but without the hub, it seems to stop working when the USB device is unplugged. LibUSB does not get a notification that the device disconnected, nor does it get notified when it is reconnected, I have to reboot to get it working again. I`m using the latest stable build. Is this a known issue, or is a fix available? My design doesn't have room for a hub. -- View this message in context: http://old.nabble.com/Summit-USB-OTG-Port-not-detecting-when-devices-are-unplugged-tp29305765p29305765.html Sent from the Gumstix mailing list archive at Nabble.com. |
From: Idruna <pa...@id...> - 2010-08-26 08:24:08
|
I finally managed to get an up to date bitbake console build working, but the problem I had earlier with the USB OTG port not detecting disconnects remains. This is what happens on the console when I plug the device in: usb 1-1: New USB device found, idVendor=04b0, idProduct=041a ... When I unplug it, nothing happens. When I plug it back in again, the disconnect message is printed, then the connect message. usb 1-1: USB disconnect, address 2 usb 1-1: new high speed USB device using musb_hdrc and address 3 usb 1-1: New USB device found, idVendor=04b0, idProduct=041a ... This messes up libusb though, I can't talk to the device properly any more. Putting an unpowered hub between the OTG port and the device allows everything to work perfectly, and the disconnect message prints immediately, but I would really like to get rid of the hub as I don't have much room in my design. Is my Summit board faulty, or is it a Linux issue? This is an Earth COM, I was using an Air earlier, so the problem persists across two different COMs. Idruna wrote: > > If I plug a hub into the Summit OTG port (even an un-powered hub), it > works perfectly, but without the hub, it seems to stop working when the > USB device is unplugged. LibUSB does not get a notification that the > device disconnected, nor does it get notified when it is reconnected, I > have to reboot to get it working again. I`m using the latest stable > build. Is this a known issue, or is a fix available? My design doesn't > have room for a hub. > -- View this message in context: http://old.nabble.com/Summit-USB-OTG-Port-not-detecting-when-devices-are-unplugged-tp29305765p29539971.html Sent from the Gumstix mailing list archive at Nabble.com. |
From: Ash C. <as...@gu...> - 2010-09-10 17:50:35
|
Hi Paul, > > This is what happens on the console when I plug the device in: > > usb 1-1: New USB device found, idVendor=04b0, idProduct=041a > ... > > When I unplug it, nothing happens. When I plug it back in again, the > disconnect message is printed, then the connect message. > > usb 1-1: USB disconnect, address 2 > usb 1-1: new high speed USB device using musb_hdrc and address 3 > usb 1-1: New USB device found, idVendor=04b0, idProduct=041a > ... > > This messes up libusb though, I can't talk to the device properly any more. > Putting an unpowered hub between the OTG port and the device allows > everything to work perfectly, and the disconnect message prints immediately, > but I would really like to get rid of the hub as I don't have much room in > my design. Which MUSB mode have you set for your OTG port (I presume host, this is the default unless you explicitly changed it)? Also, what happens when you just attach and detach the hub---if this work correctly, then it may be a USB device specific issue (either by device class or actual hardware)? -Ash |
From: Paul N. <pa...@id...> - 2010-09-11 01:30:06
|
Hi Ash, Thanks for looking into this. I have not changed the MUSB mode. The behavior is the same when plugging and unplugging the hub, other hubs, wifi adapters, cameras, phones, etc. Plug the hub in.. usb 1-1: new high speed USB device using musb_hdrc and address 2 usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 1-1: Product: USB2.0 Hub hub 1-1:1.0: USB hub found hub 1-1:1.0: 4 ports detected Unplug the hub (nothing) Plug the hub back in: usb 1-1: USB disconnect, address 2 usb 1-1: new high speed USB device using musb_hdrc and address 3 usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 1-1: Product: USB2.0 Hub hub 1-1:1.0: USB hub found hub 1-1:1.0: 4 ports detected >> This is what happens on the console when I plug the device in: >> >> usb 1-1: New USB device found, idVendor=04b0, idProduct=041a >> ... >> >> When I unplug it, nothing happens. When I plug it back in again, the >> disconnect message is printed, then the connect message. >> >> usb 1-1: USB disconnect, address 2 >> usb 1-1: new high speed USB device using musb_hdrc and address 3 >> usb 1-1: New USB device found, idVendor=04b0, idProduct=041a >> ... >> >> This messes up libusb though, I can't talk to the device properly any more. >> Putting an unpowered hub between the OTG port and the device allows >> everything to work perfectly, and the disconnect message prints immediately, >> but I would really like to get rid of the hub as I don't have much room in >> my design. > > Which MUSB mode have you set for your OTG port (I presume host, this > is the default unless you explicitly changed it)? Also, what happens > when you just attach and detach the hub---if this work correctly, then > it may be a USB device specific issue (either by device class or > actual hardware)? > > -Ash > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- Paul Nolan, CEO Idruna Software Inc. |
From: Ash C. <as...@gu...> - 2010-09-26 20:57:21
|
Hi Paul, On Fri, Sep 10, 2010 at 6:29 PM, Paul Nolan <pa...@id...> wrote: > Plug the hub back in: > > usb 1-1: USB disconnect, address 2 I can verify that when I have a USB hub plugged into the OTG port, the disconnect does not happen until after the device is re-plugged in; the Host port works correctly for me. I highly suspect this is a kernel issue, not a hardware issue. -Ash |
From: Ash C. <as...@gu...> - 2010-09-27 18:00:55
|
Hi Paul, Further to your question, this may be caused by the kernel not looking at the right GPIO line for the interrupt; the USB OTG subsystem looks for an interrupt on gpio0 rather than on gpio112 (or vice versa). Look at section regarding the 4030 interrupt in this document: http://www.gumstix.net/images//gumstix_overo_signals_v1.4.pdf. You'd need to make a change in the kernel in the board_overo.c file. This post may be of interest: http://marc.info/?t=128457013200002&r=1&w=4 HTH, Ash On Sun, Sep 26, 2010 at 1:56 PM, Ash Charles <as...@gu...> wrote: > Hi Paul, > > On Fri, Sep 10, 2010 at 6:29 PM, Paul Nolan <pa...@id...> wrote: >> Plug the hub back in: >> >> usb 1-1: USB disconnect, address 2 > > I can verify that when I have a USB hub plugged into the OTG port, the > disconnect does not happen until after the device is re-plugged in; > the Host port works correctly for me. > I highly suspect this is a kernel issue, not a hardware issue. > > -Ash > |
From: Paul N. <pa...@id...> - 2010-10-22 14:18:21
|
Hi Ash, > Further to your question, this may be caused by the kernel not looking > at the right GPIO line for the interrupt; the USB OTG subsystem looks > for an interrupt on gpio0 rather than on gpio112 (or vice versa). > Look at section regarding the 4030 interrupt in this document: > http://www.gumstix.net/images//gumstix_overo_signals_v1.4.pdf. > > You'd need to make a change in the kernel in the board_overo.c file. > > This post may be of interest: http://marc.info/?t=128457013200002&r=1&w=4 I had to take a break to work on other aspects of the project, thank you very much for tracking this down! I will see if I can recompile the kernel. Thanks, Paul Nolan, CEO Idruna Software Inc. |