EM7345 probing fails when coming back from suspend
Bjørn Mork
bjorn at mork.no
Mon Jun 2 03:14:30 PDT 2014
Aleksander Morgado <aleksander at aleksander.es> writes:
> Hey,
>
>>> Can you retry with the attached patch? If you send me back again the
>>> logs I'll be able to tell whether the bug is fixed or not.
>>
>> Attached. Don't know if you can verify that this works whether or not
>> we're hitting the akward timing? I'll run MM for a while with this
>> patch in any case and report back if it should fail again.
>>
>
> No timing issue in those logs, in this case wwan0 was notified before
> the /dev/cdc-wdm0 (which is what we usually have), see:
>
>> ModemManager[5581]: <debug> [1401695461.788618] [mm-plugin-manager.c:631] build_plugins_list(): (Plugin Manager) [wwan0] Found '1' plugins to try...
>> ModemManager[5581]: <debug> [1401695461.788796] [mm-plugin-manager.c:635] build_plugins_list(): (Plugin Manager) [wwan0] Will try with plugin 'Generic'
>> ModemManager[5581]: <debug> [1401695461.788978] [mm-plugin.c:704] mm_plugin_supports_port(): (Generic) [wwan0] probing deferred until result suggested
> ....
>> ModemManager[5581]: <debug> [1401695461.795835] [mm-plugin-manager.c:631] build_plugins_list(): (Plugin Manager) [cdc-wdm0] Found '1' plugins to try...
>> ModemManager[5581]: <debug> [1401695461.796013] [mm-plugin-manager.c:635] build_plugins_list(): (Plugin Manager) [cdc-wdm0] Will try with plugin 'Generic'
>> ModemManager[5581]: <debug> [1401695461.796199] [mm-plugin.c:782] mm_plugin_supports_port(): (Generic) [cdc-wdm0] probe required: 'mbim'
> ....
>
> To trigger the issue, wwan0 needs to be reported *after* cdc-wdm0 has
> finished probing.
OK, I am sure I can make that happen with a proper delay in the driver
:-)
I put a 5 second (1 was evidently not enough...) delay in .bind, between
the registration of the cdc-wdm0 and wwan0 devices:
Jun 2 12:12:01 nemi kernel: [ 5097.168303] usb 3-4: new high-speed USB device number 9 using ehci-pci
Jun 2 12:12:02 nemi kernel: [ 5097.317950] usb 3-4: New USB device found, idVendor=1199, idProduct=a001
Jun 2 12:12:02 nemi kernel: [ 5097.317965] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 2 12:12:02 nemi kernel: [ 5097.317974] usb 3-4: Product: Sierra Wireless EM7345 4G LTE
Jun 2 12:12:02 nemi kernel: [ 5097.317983] usb 3-4: Manufacturer: Sierra Wireless Inc.
Jun 2 12:12:02 nemi kernel: [ 5097.317991] usb 3-4: SerialNumber: 013937000536191
Jun 2 12:12:02 nemi kernel: [ 5097.343700] cdc_mbim 3-4:1.0: driver_info updated to 'CDC MBIM'
Jun 2 12:12:02 nemi kernel: [ 5097.344961] cdc_mbim 3-4:1.0: dwNtbInMaxSize=15360 dwNtbOutMaxSize=15360 wNdpOutPayloadRemainder=0 wNdpOutDivisor=32 wNdpOutAlignment=4 wNtbOutMaxDatagrams=32 flags=0x4
Jun 2 12:12:02 nemi kernel: [ 5097.351165] cdc_mbim 3-4:1.0: cdc-wdm0: USB WDM device
Jun 2 12:12:07 nemi kernel: [ 5102.354749] cdc_mbim 3-4:1.0 wwan0: register 'cdc_mbim' at usb-0000:00:1d.7-4, CDC MBIM, e6:de:4a:e8:8d:0f
Jun 2 12:12:07 nemi kernel: [ 5102.360485] cdc_acm 3-4:1.2: This device cannot do calls on its own. It is not a modem.
Jun 2 12:12:07 nemi kernel: [ 5102.360863] cdc_acm 3-4:1.2: ttyACM0: USB ACM device
Jun 2 12:12:07 nemi kernel: [ 5102.428314] cdc_mbim 3-4:1.0: cdc_mbim_manage_power() pmcount=0, on=1
The MM log from this is attached. It failed again. And I'm pretty sure
I'm running with your patch.
> Did you retry after suspend/resume?
Yes, but this problem does not happen every time.
Bjørn
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mm-debug.log
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20140602/04c4ebd6/attachment-0001.ksh>
More information about the ModemManager-devel
mailing list