Skip to content

Instantly share code, notes, and snippets.

@Simon-L
Created March 22, 2024 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Simon-L/24a28cc16b79471e38402826c20cc669 to your computer and use it in GitHub Desktop.
Save Simon-L/24a28cc16b79471e38402826c20cc669 to your computer and use it in GitHub Desktop.
dmesg otg then hcd reset to host
------- debug messages from gadget.c
dwc2 ff300000.usb: mapped PA ff300000 to VA (____ptrval____)
dwc2 ff300000.usb: Looking up vusb_d-supply from device tree
dwc2 ff300000.usb: Looking up vusb_d-supply property in node /usb@ff300000 failed
dwc2 ff300000.usb: supply vusb_d not found, using dummy regulator
dwc2 ff300000.usb: Looking up vusb_a-supply from device tree
dwc2 ff300000.usb: Looking up vusb_a-supply property in node /usb@ff300000 failed
dwc2 ff300000.usb: supply vusb_a not found, using dummy regulator
dwc2 ff300000.usb: registering common handler for irq28
dwc2 ff300000.usb: Looking up vbus-supply from device tree
dwc2 ff300000.usb: Looking up vbus-supply property in node /usb@ff300000 failed
dwc2 ff300000.usb: Core Release: 3.10a (snpsid=4f54310a)
dwc2 ff300000.usb: dwc2_core_reset()
dwc2 ff300000.usb: Waiting for host mode
dwc2 ff300000.usb: Host mode set
dwc2 ff300000.usb: Forcing mode to host
dwc2 ff300000.usb: Waiting for host mode
dwc2 ff300000.usb: Host mode set
dwc2 ff300000.usb: Forcing mode to device
dwc2 ff300000.usb: Waiting for device mode
dwc2 ff300000.usb: Device mode set
dwc2 ff300000.usb: Clearing force mode bits
dwc2 ff300000.usb: NonPeriodic TXFIFO size: 16
dwc2 ff300000.usb: RXFIFO size: 280
dwc2 ff300000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
dwc2 ff300000.usb: DCFG=0x00000000, DCTL=0x00000002, DIEPMSK=00000000
dwc2 ff300000.usb: GAHBCFG=0x00000000, GHWCFG1=0x00006664
dwc2 ff300000.usb: GRXFSIZ=0x00000400, GNPTXFSIZ=0x04000400
dwc2 ff300000.usb: DPTx[1] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[2] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[3] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[4] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[5] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[6] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[7] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[8] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: DPTx[9] FSize=0, StAddr=0x00000000
dwc2 ff300000.usb: ep0-in: EPCTL=0x00000800, SIZ=0x00000000, DMA=0x42df7b32
dwc2 ff300000.usb: ep0-out: EPCTL=0x00000800, SIZ=0x00000000, DMA=0x42df7b32
dwc2 ff300000.usb: ep1-in: EPCTL=0x00001000, SIZ=0x00000000, DMA=0x995df68f
dwc2 ff300000.usb: ep1-out: EPCTL=0x00001000, SIZ=0x00000000, DMA=0x995df68f
dwc2 ff300000.usb: ep2-in: EPCTL=0x00001800, SIZ=0x00000000, DMA=0xfbb85ee7
dwc2 ff300000.usb: ep2-out: EPCTL=0x00001800, SIZ=0x00000000, DMA=0xfbb85ee7
dwc2 ff300000.usb: ep3-in: EPCTL=0x00002000, SIZ=0x00000000, DMA=0xdeb0b10f
dwc2 ff300000.usb: ep3-out: EPCTL=0x00002000, SIZ=0x00000000, DMA=0xdeb0b10f
dwc2 ff300000.usb: ep4-in: EPCTL=0x00002800, SIZ=0x00000000, DMA=0xca454988
dwc2 ff300000.usb: ep4-out: EPCTL=0x00002800, SIZ=0x00000000, DMA=0xca454988
dwc2 ff300000.usb: ep5-in: EPCTL=0x00003000, SIZ=0x00000000, DMA=0x22126f1d
dwc2 ff300000.usb: ep5-out: EPCTL=0x00003000, SIZ=0x00000000, DMA=0x22126f1d
dwc2 ff300000.usb: ep6-in: EPCTL=0x00003800, SIZ=0x00000000, DMA=0x8d35d2f0
dwc2 ff300000.usb: ep6-out: EPCTL=0x00003800, SIZ=0x00000000, DMA=0x8d35d2f0
dwc2 ff300000.usb: ep7-in: EPCTL=0x00004000, SIZ=0x00000000, DMA=0x127a175a
dwc2 ff300000.usb: ep7-out: EPCTL=0x00004000, SIZ=0x00000000, DMA=0x127a175a
dwc2 ff300000.usb: ep8-in: EPCTL=0x00004800, SIZ=0x00000000, DMA=0xd5a97170
dwc2 ff300000.usb: ep8-out: EPCTL=0x00004800, SIZ=0x00000000, DMA=0xd5a97170
dwc2 ff300000.usb: ep9-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xb17fb339
dwc2 ff300000.usb: ep9-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xb17fb339
dwc2 ff300000.usb: DVBUSDIS=0x0000ea60, DVBUSPULSE=000002c6
---- here this is hcd resetting
dwc2 ff300000.usb: DWC OTG HCD INIT
dwc2 ff300000.usb: hcfg=00000200
dwc2 ff300000.usb: dwc2_core_init((____ptrval____))
dwc2 ff300000.usb: HS UTMI+ PHY selected
dwc2 ff300000.usb: Internal DMA Mode
-----> to host mode:
dwc2 ff300000.usb: Host Mode
dwc2 ff300000.usb: DWC OTG Controller
dwc2 ff300000.usb: new USB bus registered, assigned bus number 1
dwc2 ff300000.usb: irq 28, io mem 0xff300000
dwc2 ff300000.usb: DWC OTG HCD START
dwc2 ff300000.usb: dwc2_core_host_init((____ptrval____))
dwc2 ff300000.usb: Initializing HCFG.FSLSPClkSel to 00000000
dwc2 ff300000.usb: initial grxfsiz=00000400
dwc2 ff300000.usb: new grxfsiz=0000020d
dwc2 ff300000.usb: initial gnptxfsiz=04000400
dwc2 ff300000.usb: new gnptxfsiz=0080020d
dwc2 ff300000.usb: initial hptxfsiz=02000800
dwc2 ff300000.usb: new hptxfsiz=0100028d
dwc2 ff300000.usb: Flush Tx FIFO 16
dwc2 ff300000.usb: dwc2_flush_rx_fifo()
dwc2 ff300000.usb: Init: Port Power? op_state=9
dwc2 ff300000.usb: Init: Power Port (0)
dwc2 ff300000.usb: dwc2_enable_host_interrupts()
dwc2 ff300000.usb: DWC OTG HCD Has Root Hub
usb usb1: Manufacturer: Linux 6.7.9 dwc2_hsotg
dwc2 ff300000.usb: DWC OTG HCD EP RESET: bEndpointAddress=0x81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment