[PATCH 04/14] x22x,udev: single 'usb' subsystems check
Aleksander Morgado
aleksander at aleksander.es
Wed Jul 27 22:13:58 UTC 2016
---
plugins/x22x/77-mm-x22x-port-types.rules | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/plugins/x22x/77-mm-x22x-port-types.rules b/plugins/x22x/77-mm-x22x-port-types.rules
index 6b5938f..1237028 100644
--- a/plugins/x22x/77-mm-x22x-port-types.rules
+++ b/plugins/x22x/77-mm-x22x-port-types.rules
@@ -9,10 +9,11 @@
ACTION!="add|change|move", GOTO="mm_x22x_port_types_end"
+SUBSYSTEMS!="usb", GOTO="mm_x22x_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_x22x_port_types_end"
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bbb", GOTO="mm_x22x_generic_vendorcheck"
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b3c", GOTO="mm_x22x_olivetti_vendorcheck"
+ATTRS{idVendor}=="1bbb", GOTO="mm_x22x_generic_vendorcheck"
+ATTRS{idVendor}=="0b3c", GOTO="mm_x22x_olivetti_vendorcheck"
GOTO="mm_x22x_port_types_end"
# Generic JRD devices ---------------------------
--
2.9.0
More information about the ModemManager-devel
mailing list