Skip to contentSkip to conversation

arm64: dts: rockchip: disable USB3 host port on ROCK 5B

RFC In review FUKAUMI Naoki 2 participants 3 messages Jun 15, 2024 – Jun 17, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 1/2 arm64: dts: rockchip: disable USB3 host port on ROCK 5B

USB3 host (upper) port on ROCK 5B is not working with USB3 devices.

error message:
usb usb6-port1: Cannot enable. Maybe the USB cable is bad? usb usb6-port1: Cannot enable. Maybe the USB cable is bad? usb usb6-port1: Cannot enable. Maybe the USB cable is bad?
:

$ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 001: Dev 003, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
Fixes f97d78b9f6cf ("arm64: dts: rockchip: add USB3 host to rock-5b")
---
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +0 -4
index 4e2bf4eaef2b..61c7046435cc 100644
@@ -805,7 +805,3 @@ &usb_host1_xhci {
 	dr_mode = "host";
 	status = "okay";
 };
-
-&usb_host2_xhci {
-	status = "okay";
-};
Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#1 lore raw

RFC 2/2 arm64: dts: rockchip: disable USB3 host port on ROCK 5A

USB3 host (lower) port on ROCK 5A is not working with USB3 devices.

error message:
usb usb6-port1: Cannot enable. Maybe the USB cable is bad? usb usb6-port1: Cannot enable. Maybe the USB cable is bad? usb usb6-port1: Cannot enable. Maybe the USB cable is bad?
:

$ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 002: Dev 003, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
Fixes 0773a4a199aa ("arm64: dts: rockchip: add USB3 host to rock-5a")
---
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +0 -4
index 8e2a07612d17..a43de7d56bc8 100644
@@ -755,7 +755,3 @@ &usb_host1_ehci {
 &usb_host1_ohci {
 	status = "okay";
 };
-
-&usb_host2_xhci {
-	status = "okay";
-};
Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#2 lore raw
In reply to FUKAUMI Naoki

Hi,

Quoted 20 lines · FUKAUMI Naoki

USB3 host (upper) port on ROCK 5B is not working with USB3 devices.

error message:
usb usb6-port1: Cannot enable. Maybe the USB cable is bad? usb usb6-port1: Cannot enable. Maybe the USB cable is bad? usb usb6-port1: Cannot enable. Maybe the USB cable is bad?
:

$ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 001: Dev 003, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
Quoted 3 lines
Fixes f97d78b9f6cf ("arm64: dts: rockchip: add USB3 host to rock-5b")

---

I plugged a USB dongle into the upper and the lower USB3 port of Rock 5B and they both work fine for me:

after plugging into lower USB3:
kernel: usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
kernel: usb-storage 4-1:1.0: USB Mass Storage device detected
kernel: scsi host0: usb-storage 4-1:1.0
kernel: scsi 0:0:0:0: Direct-Access Intenso Speed Line 8.01 PQ: 0 ANSI: 6
kernel: sd 0:0:0:0: [sda] 122060800 512-byte logical blocks: (62.5 GB/58.2 GiB)
kernel: sd 0:0:0:0: [sda] Write Protect is off
kernel: sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
kernel: sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
kernel: GPT:Primary header thinks Alt. header is not at the end of the disk.
kernel: GPT:15124999 != 122060799
kernel: GPT:Alternate GPT header not at the end of the disk.
kernel: GPT:15124999 != 122060799
kernel: GPT: Use GNU Parted to correct GPT errors.
kernel: sda: sda1 sda2 sda3 sda4 sda5
kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
kernel: usb 4-1: USB disconnect, device number 2

after plugging into upper USB3:
kernel: usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
kernel: scsi host0: usb-storage 2-1:1.0
kernel: scsi 0:0:0:0: Direct-Access Intenso Speed Line 8.01 PQ: 0 ANSI: 6
kernel: sd 0:0:0:0: [sda] 122060800 512-byte logical blocks: (62.5 GB/58.2 GiB)
kernel: sd 0:0:0:0: [sda] Write Protect is off
kernel: sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
kernel: sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
kernel: GPT:Primary header thinks Alt. header is not at the end of the disk.
kernel: GPT:15124999 != 122060799
kernel: GPT:Alternate GPT header not at the end of the disk.
kernel: GPT:15124999 != 122060799
kernel: GPT: Use GNU Parted to correct GPT errors.
kernel: sda: sda1 sda2 sda3 sda4 sda5
kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk

-- Sebastian

Quoted 18 lines
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +0 -4
index 4e2bf4eaef2b..61c7046435cc 100644
@@ -805,7 +805,3 @@ &usb_host1_xhci {
 	dr_mode = "host";
 	status = "okay";
 };
-
-&usb_host2_xhci {
-	status = "okay";
-};
Signature · 1 line
2.43.0

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip