Preventing MM from probing specific serial ports on supported modems

Bjørn Mork bjorn at mork.no
Tue Nov 8 13:23:58 UTC 2016


Aleksander Morgado <aleksander at aleksander.es> writes:

> On Wed, Sep 21, 2016 at 2:29 PM, Aleksander Morgado
> <aleksander at aleksander.es> wrote:
>> On Wed, Sep 21, 2016 at 1:16 PM, Bjørn Mork <bjorn at mork.no> wrote:
>>>    mm_plugin_create_modem(): (tty/ttyUSB1): port is blacklisted
>>>
>>> message in there, but that's way after the probing is finished.  So it
>>> looks like the blacklisting is applied, but doesn't affect the probing.
>>> Which makes it a bit pointless..
>>
>> Oh! I'll have to check that.
>
> Fixed here:
> https://cgit.freedesktop.org/ModemManager/ModemManager/commit/?id=4f748144b05375db436364e13186936eae6bcfd2

Works for me. Thanks.

Totally unrelated: I had to disable the 'test-service-generic' test
while bulding this.  Couldn't figure out why it failed or how to debug
the failure...

This is what I got with a plain checkout at 64b4afa960e7
("kernel-device: return G_MAXUINT when get_property_as_int_hex() fails"):


bjorn at miraculix:/usr/local/src/git/modemmanager/plugins$ make test
TEST: test-modem-helpers-icera... (pid=31994)
  /MM/icera/ipdpaddr:                                                  OK
PASS: test-modem-helpers-icera
TEST: test-modem-helpers-mbm... (pid=32014)
  /MM/mbm/e2ipcfg:                                                     OK
  /MM/mbm/cfun/test:                                                   OK
  /MM/mbm/cfun/query/power-state:                                      OK
  /MM/mbm/cfun/query/current-modes:                                    OK
PASS: test-modem-helpers-mbm
TEST: test-modem-helpers-telit... (pid=32033)
  /MM/telit/csim:                                                      OK
  /MM/telit/bands/supported/bands_contains:                            OK
  /MM/telit/bands/supported/parse_band_flag:                           OK
  /MM/telit/bands/supported/parse_bands_response:                      OK
  /MM/telit/bands/current/parse_bands_response:                        OK
  /MM/telit/bands/current/set_bands/2g:                                OK
  /MM/telit/bands/current/set_bands/3g:                                OK
  /MM/telit/bands/current/set_bands/4g:                                OK
PASS: test-modem-helpers-telit
TEST: test-service-generic... (pid=32052)
  /MM/Service/Generic/enable-disable:                                  Activating service name='org.freedesktop.ModemManager1'
Successfully activated service 'org.freedesktop.ModemManager1'

** (/usr/local/src/git/modemmanager/plugins/.libs/lt-test-service-generic:32052): ERROR **: Error setting test profile: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Failed: Failed to find primary AT port
FAIL
cleaning up pid 32072
GTester: last random seed: R02S901428b9ff282995145586a39b491b21
Makefile:3805: recipe for target 'test-nonrecursive' failed
make: *** [test-nonrecursive] Terminated



Bjørn


More information about the ModemManager-devel mailing list