
Hi,
Has anyone tried to use dwc2 and echi port together with USB disk? look like this is not working with this combination on any Rockchip SoC's
Here are the issues that I've reproduced in RK3328 where the disk connected in EHCI port is detecting but DWC2 is not. Any clue?
=> usb start starting USB... Bus usb@ff5c0000: USB EHCI 1.00 Bus usb@ff5d0000: USB OHCI 1.0 Bus usb@ff600000: generic_phy_get_bulk : no phys property Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@ff580000: USB DWC2 scanning bus usb@ff5c0000 for devices... 2 USB Device(s) found scanning bus usb@ff5d0000 for devices... 1 USB Device(s) found scanning bus usb@ff600000 for devices... 1 USB Device(s) found scanning bus usb@ff580000 for devices... Adding disk for usb_mass_storage.lun0 failed (err=-9223372036854775788/0x8000000000000014) device 'usb_mass_storage.lun0' failed to unbind 1 USB Device(s) found device 'usb_mass_storage.lun0' failed to unbind scanning usb for storage devices... 2 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Mass Storage (480 Mb/s, 100mA) Generic Teclast CoolFlash 4163831324317134
1 Hub (12 Mb/s, 0mA) U-Boot Root Hub
1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller
1 Hub (480 Mb/s, 0mA) U-Boot Root Hub
Thanks, Jagan.

On 6/20/23 16:37, Jagan Teki wrote:
Hi,
Has anyone tried to use dwc2 and echi port together with USB disk? look like this is not working with this combination on any Rockchip SoC's
Here are the issues that I've reproduced in RK3328 where the disk connected in EHCI port is detecting but DWC2 is not. Any clue?
I generally avoid using DWC2 as host. RPi 1/2/3 does use it as host, but I think there is a hub between.
Does the stick work if you plug a hub between the board and stick ?
Also, RPi zero (?) might have raw host port on it, without hub .

On Thu, Jun 22, 2023 at 2:08 AM Marek Vasut marex@denx.de wrote:
On 6/20/23 16:37, Jagan Teki wrote:
Hi,
Has anyone tried to use dwc2 and echi port together with USB disk? look like this is not working with this combination on any Rockchip SoC's
Here are the issues that I've reproduced in RK3328 where the disk connected in EHCI port is detecting but DWC2 is not. Any clue?
I generally avoid using DWC2 as host. RPi 1/2/3 does use it as host, but I think there is a hub between.
Looks this is the same case even for the Rockchip SoC side as well.
Does the stick work if you plug a hub between the board and stick ?
I have observed the same behavior as before It detects very rarely.
Also, RPi zero (?) might have raw host port on it, without hub .
Worth to try, will check it.
Thanks, Jagan

On Wed, Jun 21, 2023 at 9:38 PM Marek Vasut marex@denx.de wrote:
On 6/20/23 16:37, Jagan Teki wrote:
Hi,
Has anyone tried to use dwc2 and echi port together with USB disk? look like this is not working with this combination on any Rockchip SoC's
Here are the issues that I've reproduced in RK3328 where the disk connected in EHCI port is detecting but DWC2 is not. Any clue?
I generally avoid using DWC2 as host. RPi 1/2/3 does use it as host, but I think there is a hub between.
The B models of the 1-3 have a hub.
Also, RPi zero (?) might have raw host port on it, without hub .
Correct, the Zeros, Model As, Compute Modules (inc the CM4) in some configurations and the RPi4 via the USB-C (albeit I suspect rarely used as such) all have dwc2 directly connected.
participants (3)
-
Jagan Teki
-
Marek Vasut
-
Peter Robinson