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

Sebastian Reichel sebastian.reichel at collabora.com
Mon Jun 17 08:57:14 PDT 2024


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 at 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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20240617/f6efba27/attachment-0001.sig>


More information about the Linux-rockchip mailing list