Bug 187861 - cdc_mbim: probe of 2-2:1.12 failed with error -22
Summary: cdc_mbim: probe of 2-2:1.12 failed with error -22
Status: RESOLVED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 10:28 UTC by Kai-Heng Feng
Modified: 2019-04-04 08:55 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.9.0-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg, usbcore and xhci_hcd dynamic debug enabled (178.13 KB, application/octet-stream)
2016-11-16 10:28 UTC, Kai-Heng Feng
Details

Description Kai-Heng Feng 2016-11-16 10:28:13 UTC
Created attachment 244751 [details]
dmesg, usbcore and xhci_hcd dynamic debug enabled

Originally I send a not-working patch to the mailing list [1], turns out the patch is far from correct.

Bjørn Mork suggests that we can cover the USB3 pair diff pins with tape to do some experiment, but the vendor told me that there's no such pin.

According to the attached log, looks like xhci driver failed to get status from port after resume, eventually make the cdc_mbim probe failed:

[   10.038428] xhci_hcd 0000:00:14.0: get port status, actual port 1 status  = 0x202c0
[   10.038429] xhci_hcd 0000:00:14.0: Get port status returned 0x102c0
[   10.038463] usb usb2-port2: status 0001.02c0 after resume, -19
[   10.038465] usb 2-2: can't resume, status -19
[   10.038465] usb usb2-port2: logical disconnect
[   10.038472] xhci_hcd 0000:00:14.0: Cannot set link state.
[   10.038528] usb usb2-port2: cannot disable (err = -32)
[   10.038575] cdc_mbim 2-2:1.12: usb_probe_interface
[   10.038577] cdc_mbim 2-2:1.12: usb_probe_interface - got id
[   10.038579] cdc_mbim: probe of 2-2:1.12 failed with error -22

[1] https://patchwork.ozlabs.org/patch/691177/
Comment 1 Kai-Heng Feng 2016-11-16 10:31:37 UTC
This is tested on top of xhci/for-usb-next branch, commit 6005a545cadb2adca64350c7aee17d002563e8c7  usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
Comment 2 Greg Kroah-Hartman 2016-11-16 10:34:50 UTC
On Wed, Nov 16, 2016 at 10:28:13AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=187861
> 
>             Bug ID: 187861
>            Summary: cdc_mbim: probe of 2-2:1.12 failed with error -22
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 4.9.0-rc3


All USB bugs should be sent to the linux-usb@vger.kernel.org mailing
list, and not entered into bugzilla.  Please bring this issue up there,
if it is still a problem in the latest kernel release.
Comment 3 Kai-Heng Feng 2016-11-16 10:40:02 UTC
Thanks for the notice, I'll bring the issue up there.

Note You need to log in before you can comment on or make changes to this bug.