[PATCH] blacklist: remove OpenMoko Hubs from the blacklist

Alexander Couzens lynxis at fe80.eu
Tue Jul 10 14:03:10 UTC 2018


The problem of full vendor blacklist are hubs.
Because ATTRS{} matches all devices in the tree,
a modem connected to a OpenMoko hub will be blacklisted as well.
---
 src/77-mm-usb-device-blacklist.rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/77-mm-usb-device-blacklist.rules b/src/77-mm-usb-device-blacklist.rules
index 854739a6f385..758b4bf522ff 100644
--- a/src/77-mm-usb-device-blacklist.rules
+++ b/src/77-mm-usb-device-blacklist.rules
@@ -120,8 +120,8 @@ ATTRS{idVendor}=="0fcf", ATTRS{idProduct}=="1009", ENV{ID_MM_DEVICE_IGNORE}="1"
 # Cypress M8-based GPS devices, UPSes, and serial converters
 DRIVERS=="cypress_m8", ENV{ID_MM_DEVICE_IGNORE}="1"
 
-# All devices in the Openmoko vendor ID
-ATTRS{idVendor}=="1d50", ENV{ID_MM_DEVICE_IGNORE}="1"
+# All devices in the Openmoko vendor ID, except usb hubs
+ATTRS{idVendor}=="1d50", ATTRS{bDeviceClass}!="09", ENV{ID_MM_DEVICE_IGNORE}="1"
 
 # All devices from 3D Robotics
 ATTRS{idVendor}=="26ac", ENV{ID_MM_DEVICE_IGNORE}="1"
-- 
2.18.0



More information about the ModemManager-devel mailing list