diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2021-06-09 13:49:08 +0200 |
---|---|---|
committer | Stephan Gerhold <stephan@gerhold.net> | 2021-06-09 13:49:08 +0200 |
commit | 4282c8d843a144f20f0e1bd9f632751af7a5ff70 (patch) | |
tree | ff5c621e982e1ec0491deb30ca26dc6af1e34d71 /docs/reference/api/ModemManager-overview.xml | |
parent | ac18b5ac5bf841cd3a619a9e07137c332558d6c4 (diff) |
udev: Match WWAN "type" attribute instead of device name
Recent changes in the WWAN framework in the kernel changed the WWAN
port names from e.g. "wwan0p1AT" and "wwan0p2QMI" to "wwan0at0" and
"wwan0qmi0" [1, 2]. This means that the udev rules no longer match
since AT/QMI are now lower-case and no longer at the end of the name.
However, recently additionally a "type" sysfs attribute was added
for all WWAN ports [3], which makes it much more reliable to match
the WWAN port names without relying on their exact device name.
Add some additional udev rules to apply the port hints based on the
"type" sysfs attributes. This fixes the port enumeration on newer
Linux kernels that include the aforementioned commits.
Note that we still need to keep the old udev rules for now since
Linux 5.13 does not have the "type" attribute yet.
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=392c26f7f133b9f09e5f58db1ce6ef4b3b4df49f
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=f458709ff40b0d992fec496952f79c7820dd3fde
[3]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=b3e22e10fdda8e7be3830289a4a63ae8b88d450c
Diffstat (limited to 'docs/reference/api/ModemManager-overview.xml')
0 files changed, 0 insertions, 0 deletions