[BUG BISECT] USB on Exynos4412 fails after usb: dwc2: gadget: Replace phyif with phy_utmi_width

From: Krzysztof Kozlowski
Date: Fri May 03 2019 - 16:50:45 EST


Hi,

Bisect pointed commit 707d80f0a3c5 ("usb: dwc2: gadget: Replace phyif
with phy_utmi_width") as reason for failures of USB on Exynos4412,
Odroid U3 board (ARMv7, exynos_defconfig, TFTP boot with nfsroot from
NFSv4):

[ 4.333996] usb 1-2: new high-speed USB device number 3 using exynos-ehci
[ 4.503942] usb 1-2: device descriptor read/64, error -71
[ 4.793970] usb 1-2: device descriptor read/64, error -71
[ 4.914748] usb usb1-port2: attempt power cycle
[ 6.224267] usb 1-3: new high-speed USB device number 5 using exynos-ehci
[ 6.393983] usb 1-3: device descriptor read/64, error -71
[ 6.684243] usb 1-3: device descriptor read/64, error -71
[ 6.954259] usb 1-3: new high-speed USB device number 6 using exynos-ehci
[ 7.123980] usb 1-3: device descriptor read/64, error -71
[ 7.413969] usb 1-3: device descriptor read/64, error -71
[ 7.534778] usb usb1-port3: attempt power cycle

The boot failure is effect of lack of network adapter (USB, smsc95xx).
Expected:
[ 4.285831] usb 1-3: New USB device found, idVendor=0424, idProduct=3503, bcdDevice=a1.a0
[ 4.288986] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.299596] hub 1-3:1.0: USB hub found
[ 4.300027] hub 1-3:1.0: 3 ports detected
[ 5.895541] smsc95xx 1-2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

Full kernel log is here:
https://krzk.eu/#/builders/25/builds/1330/steps/14/logs/serial0
https://krzk.eu/#/builders/25/builds/1330

Let me know if you need any more details.

Best regards,
Krzysztof