summaryrefslogtreecommitdiff
path: root/src/77-mm-usb-device-blacklist.rules
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-07-10 16:03:10 +0200
committerAleksander Morgado <aleksander@aleksander.es>2018-07-10 18:26:06 +0200
commit62334b60a24c06a9e699c7b1dde56f52c30729f8 (patch)
tree77535bf1b6ce0de98fa880e0f1ae6013e7611408 /src/77-mm-usb-device-blacklist.rules
parentf01d88bf914303257d420d66146ac10575805e83 (diff)
blacklist: remove OpenMoko Hubs from the blacklist
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.
Diffstat (limited to 'src/77-mm-usb-device-blacklist.rules')
-rw-r--r--src/77-mm-usb-device-blacklist.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/77-mm-usb-device-blacklist.rules b/src/77-mm-usb-device-blacklist.rules
index 854739a6..758b4bf5 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"