Bug 218118
Summary: | USB3 port does not work on Chromebook XE303C12 with Linux kernel 6.5.11 | ||
---|---|---|---|
Product: | Drivers | Reporter: | Andrew (quark) |
Component: | USB | Assignee: | Default virtual assignee for Drivers/USB (drivers_usb) |
Status: | NEW --- | ||
Severity: | normal | CC: | mathias.nyman |
Priority: | P3 | ||
Hardware: | ARM | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: |
dmesg
kernel config config patch dmesg |
Description
Andrew
2023-11-08 21:38:40 UTC
Can you try git bisect to find the offending commit? looks like xHC host does see something on port 3-1, but can't get it enumerated properly. dmesg shows some issues with phy and regulators: samsung-usb2-phy 12130000.phy: supply vbus not found, using dummy regulator exynos5_usb3drd_phy 12100000.phy: supply vbus-boost not found, using dummy regulator Maybe there is an issue in turning on regulators, supplying ports with power? Enabling dynamic debug for usbcore and xhci at boot could show more info, can be done by adding: usbcore.dyndbg=+p xhci_hcd.dyndbg=+p to the kernel cmdline. Created attachment 305382 [details]
dmesg
Created attachment 305383 [details]
kernel config
Unfortinally 'usbcore.dyndbg=+p xhci_hcd.dyndbg=+p' did not gave more information about usb3 issue. Maybe I need to add some extra option to kernel config and recompile? I tried to plug in mouse to usb3 port instead of flash-drive, and there was no light under mouse. And 'usb usb3-port1: connect-debounce failed' appeared at dmesg. Created attachment 305391 [details]
config patch
Created attachment 305392 [details]
dmesg
I applied configpatch and rebuilt the kernel. With debugging enabled usb3 port works fine. That was unexpected for me. The debug output causes some latency, that could be one reason. The log for example show that usb3 bus was just about to be suspended before it detected something on the port: [ 2.337685] xhci-hcd xhci-hcd.6.auto: Get port status 3-1 read: 0x2a0, return 0x100 [ 2.337727] hub 3-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 2.337745] hub 3-0:1.0: hub_suspend [ 2.337769] usb usb3: bus auto-suspend, wakeup 1 [ 2.337780] usb usb3: suspend raced with wakeup event [ 2.337786] usb usb3: usb auto-resume [ 2.376930] xhci-hcd xhci-hcd.6.auto: Port change event, 3-1, id 1, portsc: 0xa0206e1 |