Hi, I was wondering if anyone has come across the problem I am experiencing with the staging DWC2 driver. The problem is that the driver is failing to detect a device when connected. I know that HW works because I have an older version of the driver for this IP and it seems to work OK, barring a few issues(DMA, Split Transactions), this older driver is able to function adequately on a mass storage device. But the DWC2 driver is not able to detect a device at all, unless I force it into HOST mode only. With Host mode only, its able to see a device but fails to enumerate correctly. Any chance anyone has a similar experience with this DWC2 driver, any help will greatly appreciated. Of course, I will go back and verify the initialization between the DWC2 and the old driver to see if I can spot anything. I know that this driver is working on the RPi. I looked at Stephen Warren's RPi code on git-hub, followed similar steps, but still not quite there yet. Here is the error log: dwc2 ffb40000.usb: gintsts=05000021 gintmsk=f3000806 dwc2 ffb40000.usb: gintsts=24000021 gintmsk=f3000806 dwc2 ffb40000.usb: ++Disconnect Detected Interrupt++ (Host) a_host dwc2 ffb40000.usb: gintsts=05000021 gintmsk=f3000806 dwc2 ffb40000.usb: gintsts=04000025 gintmsk=f3000806 dwc2 ffb40000.usb: ++OTG Interrupt gotgint=80000 [a_host] dwc2 ffb40000.usb: ++OTG Interrupt: Debounce Done++ dwc2 ffb40000.usb: DWC OTG HCD HUB STATUS DATA: Root port status changed dwc2 ffb40000.usb: port_connect_status_change: 1 dwc2 ffb40000.usb: port_reset_change: 0 dwc2 ffb40000.usb: port_enable_change: 0 dwc2 ffb40000.usb: port_suspend_change: 0 dwc2 ffb40000.usb: port_over_current_change: 0 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x00000003 dwc2 ffb40000.usb: HPRT0: 0x00021401 dwc2 ffb40000.usb: port_status=00010101 dwc2 ffb40000.usb: ClearPortFeature USB_PORT_FEAT_C_CONNECTION dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x00000002 dwc2 ffb40000.usb: HPRT0: 0x00021401 dwc2 ffb40000.usb: port_status=00000101 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x00000002 dwc2 ffb40000.usb: HPRT0: 0x00021401 dwc2 ffb40000.usb: port_status=00000101 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x00000002 dwc2 ffb40000.usb: HPRT0: 0x00021401 dwc2 ffb40000.usb: port_status=00000101 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x00000002 dwc2 ffb40000.usb: HPRT0: 0x00021401 dwc2 ffb40000.usb: port_status=00000101 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x00000002 dwc2 ffb40000.usb: HPRT0: 0x00021401 dwc2 ffb40000.usb: port_status=00000101 dwc2 ffb40000.usb: SetPortFeature dwc2 ffb40000.usb: SetPortFeature - USB_PORT_FEAT_RESET dwc2 ffb40000.usb: In host mode, hprt0=00021501 dwc2 ffb40000.usb: gintsts=05000021 gintmsk=f3000806 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x00000006 dwc2 ffb40000.usb: HPRT0: 0x00001005 dwc2 ffb40000.usb: port_status=00100503 dwc2 ffb40000.usb: ClearPortFeature USB_PORT_FEAT_C_RESET usb 1-1: new high-speed USB device number 2 using dwc2 dwc2 ffb40000.usb: --Host Channel 0 Interrupt: Transaction Error-- dwc2 ffb40000.usb: --Host Channel 1 Interrupt: Transaction Error-- dwc2 ffb40000.usb: --Host Channel 2 Interrupt: Transaction Error-- dwc2 ffb40000.usb: XactErr dwc2 ffb40000.usb: DWC OTG HCD URB Dequeue dwc2 ffb40000.usb: desc DMA enabled dwc2 ffb40000.usb: Called usb_hcd_giveback_urb() dwc2 ffb40000.usb: urb->status = -2 dwc2 ffb40000.usb: SetPortFeature dwc2 ffb40000.usb: SetPortFeature - USB_PORT_FEAT_RESET dwc2 ffb40000.usb: In host mode, hprt0=00001101 dwc2 ffb40000.usb: gintsts=05000029 gintmsk=f3000806 dwc2 ffb40000.usb: gintsts=05000029 gintmsk=f3000806 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x0000000e dwc2 ffb40000.usb: HPRT0: 0x00001005 dwc2 ffb40000.usb: port_status=00120503 dwc2 ffb40000.usb: ClearPortFeature USB_PORT_FEAT_C_RESET dwc2 ffb40000.usb: --Host Channel 6 Interrupt: Transaction Error-- dwc2 ffb40000.usb: XactErr dwc2 ffb40000.usb: DWC OTG HCD HUB STATUS DATA: Root port status changed dwc2 ffb40000.usb: port_connect_status_change: 0 dwc2 ffb40000.usb: port_reset_change: 0 dwc2 ffb40000.usb: port_enable_change: 1 dwc2 ffb40000.usb: port_suspend_change: 0 dwc2 ffb40000.usb: port_over_current_change: 0 dwc2 ffb40000.usb: DWC OTG HCD EP DISABLE: bEndpointAddress=0x00, ep->hcpriv=bf973940 dwc2 ffb40000.usb: DWC OTG HCD EP DISABLE: bEndpointAddress=0x00, ep->hcpriv= (null) dwc2 ffb40000.usb: DWC OTG HCD EP RESET: bEndpointAddress=0x00 dwc2 ffb40000.usb: --Host Channel 11 Interrupt: Transaction Error-- dwc2 ffb40000.usb: XactErr dwc2 ffb40000.usb: --Host Channel 14 Interrupt: Transaction Error-- dwc2 ffb40000.usb: XactErr dwc2 ffb40000.usb: --Host Channel 1 Interrupt: Transaction Error-- dwc2 ffb40000.usb: XactErr usb 1-1: device descriptor read/all, error -71 dwc2 ffb40000.usb: ClearPortFeature USB_PORT_FEAT_ENABLE dwc2 ffb40000.usb: gintsts=05000029 gintmsk=f3000806 dwc2 ffb40000.usb: DWC OTG HCD HUB STATUS DATA: Root port status changed dwc2 ffb40000.usb: port_connect_status_change: 0 dwc2 ffb40000.usb: port_reset_change: 0 dwc2 ffb40000.usb: port_enable_change: 1 dwc2 ffb40000.usb: port_suspend_change: 0 dwc2 ffb40000.usb: port_over_current_change: 0 dwc2 ffb40000.usb: DWC OTG HCD EP DISABLE: bEndpointAddress=0x00, ep->hcpriv=bfbad2c0 dwc2 ffb40000.usb: DWC OTG HCD EP DISABLE: bEndpointAddress=0x00, ep->hcpriv= (null) dwc2 ffb40000.usb: DWC OTG HCD EP RESET: bEndpointAddress=0x00 dwc2 ffb40000.usb: SetPortFeature dwc2 ffb40000.usb: SetPortFeature - USB_PORT_FEAT_RESET dwc2 ffb40000.usb: In host mode, hprt0=00001501 dwc2 ffb40000.usb: gintsts=05000029 gintmsk=f3000806 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x0000000e dwc2 ffb40000.usb: HPRT0: 0x00001005 dwc2 ffb40000.usb: port_status=00120503 dwc2 ffb40000.usb: DWC OTG HCD HUB STATUS DATA: Root port status changed dwc2 ffb40000.usb: port_connect_status_change: 0 dwc2 ffb40000.usb: ClearPortFeature USB_PORT_FEAT_C_RESET usb 1-1: new high-speed USB device number 3 using dwc2 dwc2 ffb40000.usb: SetPortFeature dwc2 ffb40000.usb: SetPortFeature - USB_PORT_FEAT_RESET dwc2 ffb40000.usb: In host mode, hprt0=00001101 dwc2 ffb40000.usb: gintsts=05000029 gintmsk=f3000806 dwc2 ffb40000.usb: port_reset_change: 0 dwc2 ffb40000.usb: port_enable_change: 1 dwc2 ffb40000.usb: port_suspend_change: 0 dwc2 ffb40000.usb: port_over_current_change: 0 dwc2 ffb40000.usb: gintsts=05000029 gintmsk=f3000806 dwc2 ffb40000.usb: GetPortStatus wIndex=0x0001 flags=0x0000000e dwc2 ffb40000.usb: HPRT0: 0x00001005 Thanks, Dinh -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html