Re: [PATCH v3] usb: dwc3: core: Do core softreset when switch mode
From: Ferry Toth <hidden>
Date: 2021-04-19 20:24:13
Also in:
stable
Op 19-04-2021 om 10:43 schreef Andy Shevchenko:
On Mon, Apr 19, 2021 at 2:03 AM Thinh Nguyen [off-list ref] wrote:quoted
Ferry Toth wrote:quoted
Op 17-04-2021 om 16:22 schreef Ferry Toth:quoted
Op 17-04-2021 om 04:27 schreef Thinh Nguyen:quoted
Ferry Toth wrote:quoted
Op 16-04-2021 om 00:23 schreef Thinh Nguyen:quoted
Thinh Nguyen wrote:On the PC side this resulted to: apr 17 18:17:44 delfion kernel: usb 1-5: new high-speed USB device number 12 using xhci_hcd apr 17 18:17:44 delfion kernel: usb 1-5: New USB device found, idVendor=1d6b, idProduct=0104, bcdDevice= 1.00 apr 17 18:17:44 delfion kernel: usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 apr 17 18:17:44 delfion kernel: usb 1-5: Product: USBArmory Gadget apr 17 18:17:44 delfion kernel: usb 1-5: Manufacturer: USBArmory apr 17 18:17:44 delfion kernel: usb 1-5: SerialNumber: 0123456789abcdef apr 17 18:17:49 delfion kernel: usb 1-5: can't set config #1, error -110 Thanks for all your help!Looks like it's LPM related again. To confirm, try this: Disable LPM with this property "snps,usb2-gadget-lpm-disable" (Note that it's not the same as "snps,dis_enblslpm_quirk") Make sure that your testing kernel has this patch [1] 475e8be53d04 ("usb: dwc3: gadget: Check for disabled LPM quirk")Thinh, Ferry, I'm a bit lost in this thread. Can you summarize what patches I have to apply on top of v5.12-rc8 to mitigate issues, mentioned in this thread? (Sounds to me there are like ~5 patches floating around)
I have 3 on top usb-next (-rc7) usb: dwc3: core: Do core softreset when switch mode usb: dwc3: gadget: START_TRANSFER command needs to be executed while the device is on "ON" state usb: gadget: increase BESL baseline to 6 See here: https://github.com/htot/linux/commits/eds-acpi-5.12-rc7
I'll try to find time to test on my side.