diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-06 14:45:27 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-06 15:23:36 +0200 |
commit | ac18b5ac5bf841cd3a619a9e07137c332558d6c4 (patch) | |
tree | 4322e985fc569c4332500df43c31244cada3ead5 | |
parent | 40c647ce3e88e646e00a0990340278b941aec242 (diff) |
udev: only flag as candidates the wwan ports, not the full device
Explicitly ignore the "wwan_dev" device as it is not associated with
separate ports (which is what MM needs), but with the whole device
instead.
See https://lists.freedesktop.org/archives/modemmanager-devel/2021-May/008629.html
-rw-r--r-- | src/80-mm-candidate.rules | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/80-mm-candidate.rules b/src/80-mm-candidate.rules index 38b34db5..afa524a4 100644 --- a/src/80-mm-candidate.rules +++ b/src/80-mm-candidate.rules @@ -17,8 +17,12 @@ SUBSYSTEM=="tty", ENV{ID_MM_CANDIDATE}="1" SUBSYSTEM=="net", ENV{ID_MM_CANDIDATE}="1" KERNEL=="cdc-wdm[0-9]*", SUBSYSTEM=="usbmisc", ENV{ID_MM_CANDIDATE}="1" -# For now WWAN subsystem has only been validated with PCI-based devices +# WWAN subsystem port handling +# - All USB devices ignored for now, only PCI devices expected +# - Only "wwan_port" device types processed (single ports); we fully ignore +# the "wwan_dev" device type (full device, not just one port) SUBSYSTEMS=="usb", GOTO="mm_candidate_end" +SUBSYSTEM=="wwan", ENV{DEVTYPE}=="wwan_dev", GOTO="mm_candidate_end" SUBSYSTEM=="wwan", ENV{ID_MM_CANDIDATE}="1" SUBSYSTEM=="wwan", KERNEL=="*MBIM", ENV{ID_MM_PORT_TYPE_MBIM}="1" SUBSYSTEM=="wwan", KERNEL=="*QMI", ENV{ID_MM_PORT_TYPE_QMI}="1" |