usb: dwc3: some USB devices not working after 6.4.8

From: Kenta Sato
Date: Sun Sep 03 2023 - 08:19:35 EST


Hi,

I am using the FriendlyElec NanoPi R4S board.
When I update the kernel from 6.4.7 to 6.4.11, 6.4.13, and 6.5.1, it
doesn't recognize some USB devices.

The board has two USB 3.0 ports. I connected 1) BUFFALO USB Flash Disk
(high-speed) and 2) NETGEAR A6210 (SuperSpeed) to each port.
1) is often not recognized. On the other hand, 2) was working while I
was testing.
Regardless of whether a USB device is connected, I could see the below
message on dmesg:

[ 0.740993] phy phy-ff7c0000.phy.8: phy poweron failed --> -110
[ 0.741585] dwc3 fe800000.usb: error -ETIMEDOUT: failed to initialize core
[ 0.742334] dwc3: probe of fe800000.usb failed with error -110
[ 0.751635] rockchip-usb2phy ff770000.syscon:usb2phy@e460:
Requested PHY is disabled

Is there any idea on this?

The cause seems to be related to this commit. I tried reverting this
change and the issue seemed to be solved.