EM7565 enumeration

Paul Gildea gildeap at tcd.ie
Wed Sep 26 15:04:09 UTC 2018


I've patched my 4.7.8 kernel with the patch above, referenced by
Aleksander, and now I get somewhat expected and somewhat unexpected
behaviour.
Firstly, the modem at times does appear and a wwan and cdc-wdm interface is
created. The cdc-wdm can be queried with libqmi successfully.


qmicli --device-open-qmi -p -d /dev/cdc-wdm0 --dms-get-operating-mode

[/dev/cdc-wdm0] Operating mode retrieved:

        Mode: 'online'

        HW restricted: 'no'

The first issue is that no USB interfaces are enumerated, and I expect the
usual three should be:

[  236.545123] usb 3-4: new high-speed USB device number 12 using xhci_hcd

[  236.713281] usb 3-4: config 1 has an invalid interface number: 8 but max
is 3
[  236.713285] usb 3-4: config 1 has no interface number 1

[  236.715902] usb 3-4: New USB device found, idVendor=1199, idProduct=9091

[  236.715906] usb 3-4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[  236.715909] usb 3-4: Product: Sierra Wireless EM7565
Qualcomm\xffffffc2\xffffffae Snapdragon\xffffffe2\xffffff84\xffffffa2 X16
LTE-A
[  236.715911] usb 3-4: Manufacturer: Sierra Wireless, Incorporated

[  236.715912] usb 3-4: SerialNumber: d470b623

[  236.725823] qmi_wwan 3-4:1.8: cdc-wdm0: USB WDM device

[  236.726017] qmi_wwan 3-4:1.8 wwan0: register 'qmi_wwan' at
usb-0000:06:00.0-4, WWAN/QMI device, 1e:3c:de:67:26:b1

Second issue is that the modem sometimes does not come up at all, instead
it appears a s a google/android device, this is what is shown:

[   18.565516] usb 3-4: new high-speed USB device number 6 using xhci_hcd

[   18.684849] usb 3-4: New USB device found, idVendor=18d1, idProduct=d00d

[   18.684852] usb 3-4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[   18.684855] usb 3-4: Product: Android

[   18.684857] usb 3-4: Manufacturer: Google

[   18.684858] usb 3-4: SerialNumber: d470b623

[   18.919606] usb 3-4: USB disconnect, device number 6

[   20.523473] usb 3-4: new high-speed USB device number 7 using xhci_hcd

[   20.642849] usb 3-4: New USB device found, idVendor=18d1, idProduct=d00d

[   20.642853] usb 3-4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[   20.642856] usb 3-4: Product: Android

[   20.642858] usb 3-4: Manufacturer: Google
[   20.642859] usb 3-4: SerialNumber: d470b623

Anybody seen this or any ideas?


--
Paul





On Tue, 25 Sep 2018 at 12:19, Paul Gildea <gildeap at tcd.ie> wrote:

> I tried that thanks, this is what I got:
>
>
> [68728.191271] qmi_wwan: probe of 1-4:1.0 failed with error -22
>
> [68728.191290] qmi_wwan 1-4:1.2: bogus CDC Union: master=0, slave=0
>
> [68728.191982] qmi_wwan 1-4:1.2: cdc-wdm0: USB WDM device
> [68728.192178] qmi_wwan 1-4:1.2 wwan0: register 'qmi_wwan' at
> usb-0000:00:14.0-4, WWAN/QMI device, 2a:35:d7:51:79:b6
> [68728.192198] qmi_wwan 1-4:1.3: bogus CDC Union: master=0, slave=0
>
> [68728.192676] qmi_wwan 1-4:1.3: cdc-wdm1: USB WDM device
> [68728.192872] qmi_wwan 1-4:1.3 wwan1: register 'qmi_wwan' at
> usb-0000:00:14.0-4, WWAN/QMI device, 2a:35:d7:51:79:b6
> [68728.193522] qmi_wwan 1-4:1.8: cdc-wdm2: USB WDM device
> [68728.193708] qmi_wwan 1-4:1.8 wwan2: register 'qmi_wwan' at
> usb-0000:00:14.0-4, WWAN/QMI device, 2a:35:d7:51:79:b6
>
>
> On 24 September 2018 at 19:52, Aleksander Morgado <
> aleksander at aleksander.es> wrote:
>
>> Hey,
>>
>> >>> > [   36.007167] usb 3-4: new high-speed USB device number 11 using
>> xhci_hcd
>> >>> > [   36.175364] usb 3-4: config 1 has an invalid interface number: 8
>> but max is 3
>> >>> > [   36.175368] usb 3-4: config 1 has no interface number 1
>> >>> > [   36.177987] usb 3-4: New USB device found, idVendor=1199,
>> idProduct=9091
>> >>> > [   36.177991] usb 3-4: New USB device strings: Mfr=1, Product=2,
>> SerialNumber=3
>> >>> > [   36.177993] usb 3-4: Product: Sierra Wireless EM7565
>> Qualcomm\xffffffc2\xffffffae Snapdragon\xffffffe2\xffffff84\xffffffa2 X16
>> LTE-A
>> >>> > [   36.177995] usb 3-4: Manufacturer: Sierra Wireless, Incorporated
>> >>> > [   36.177997] usb 3-4: SerialNumber: d470b623
>> >>> >
>> >>> >
>> >>> > I had a look through the archive for mentions of EM7565 and I saw
>> some talk of patches to support it but nothing solid about what was added
>> or if anything was, some stuff about GPS and also qmi-firmware-update and
>> so on. At this stage do I just need to patch the vendor and product ID's in
>> some files for this modem to be functional?
>> >>> >
>> >>>
>> >>> What kernel version are you using? The necessary support in the kernel
>> >>> should be available since v4.15 (commit
>> >>> aceef61ee56898cfa7b6960fb60b9326c3860441).
>> >>>
>>
>> Try to insert the id in runtime:
>> # echo "1199 9091" > /sys/bus/usb/drivers/qmi_wwan/new_id
>>
>>
>> --
>> Aleksander
>> https://aleksander.es
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20180926/163a0b01/attachment.html>


More information about the libqmi-devel mailing list