linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B
@ 2024-06-15  7:09 FUKAUMI Naoki
  2024-06-15  7:09 ` [RFC 2/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5A FUKAUMI Naoki
  2024-06-17 15:57 ` [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B Sebastian Reichel
  0 siblings, 2 replies; 3+ messages in thread
From: FUKAUMI Naoki @ 2024-06-15  7:09 UTC (permalink / raw)
  To: heiko; +Cc: sebastian.reichel, linux-rockchip, 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

Fixes: f97d78b9f6cf ("arm64: dts: rockchip: add USB3 host to rock-5b")
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
---
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
index 4e2bf4eaef2b..61c7046435cc 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
@@ -805,7 +805,3 @@ &usb_host1_xhci {
 	dr_mode = "host";
 	status = "okay";
 };
-
-&usb_host2_xhci {
-	status = "okay";
-};
-- 
2.43.0


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [RFC 2/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5A
  2024-06-15  7:09 [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B FUKAUMI Naoki
@ 2024-06-15  7:09 ` FUKAUMI Naoki
  2024-06-17 15:57 ` [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B Sebastian Reichel
  1 sibling, 0 replies; 3+ messages in thread
From: FUKAUMI Naoki @ 2024-06-15  7:09 UTC (permalink / raw)
  To: heiko; +Cc: sebastian.reichel, linux-rockchip, FUKAUMI Naoki

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")
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
---
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 8e2a07612d17..a43de7d56bc8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -755,7 +755,3 @@ &usb_host1_ehci {
 &usb_host1_ohci {
 	status = "okay";
 };
-
-&usb_host2_xhci {
-	status = "okay";
-};
-- 
2.43.0


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B
  2024-06-15  7:09 [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B FUKAUMI Naoki
  2024-06-15  7:09 ` [RFC 2/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5A FUKAUMI Naoki
@ 2024-06-17 15:57 ` Sebastian Reichel
  1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2024-06-17 15:57 UTC (permalink / raw)
  To: FUKAUMI Naoki; +Cc: heiko, linux-rockchip


[-- Attachment #1.1: Type: text/plain, Size: 3860 bytes --]

Hi,

On Sat, Jun 15, 2024 at 04:09:03PM GMT, FUKAUMI Naoki wrote:
> 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")
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
> ---

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

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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-17 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-15  7:09 [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B FUKAUMI Naoki
2024-06-15  7:09 ` [RFC 2/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5A FUKAUMI Naoki
2024-06-17 15:57 ` [RFC 1/2] arm64: dts: rockchip: disable USB3 host port on ROCK 5B Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).