77-mm-usb-device-blacklist.rules - allow blacklisting various devices

poma pomidorabelisima at gmail.com
Tue Sep 2 18:42:30 PDT 2014


Don't automatically probe, because this can happen
 ...
 kernel: INFO: task ModemManager:604 blocked for more than 120 seconds.
 kernel:      Not tainted 3.17.0-0.rc2.git3.1.fc22.x86_64 #1
 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
 kernel: ModemManager    D ffff8800c80f4d10 13184   604      1 0x00000004
 kernel: Call Trace:
 kernel: [<ffffffff81826de9>] schedule+0x29/0x70
 kernel: [<ffffffff815c1ff5>] usb_kill_urb+0xa5/0xe0
 kernel: [<ffffffff810efe90>] ? abort_exclusive_wait+0xb0/0xb0
 kernel: [<ffffffffa02a0058>] acm_port_shutdown+0xd8/0x120 [cdc_acm]
 kernel: [<ffffffff814f23b4>] tty_port_shutdown+0x74/0xb0
 kernel: [<ffffffff814f2d56>] tty_port_close+0x26/0x50
 kernel: [<ffffffffa02a0803>] acm_tty_close+0x33/0x70 [cdc_acm]
 kernel: [<ffffffff814e9331>] tty_release+0x121/0x6b0
 kernel: [<ffffffff81259b55>] __fput+0xf5/0x210
 kernel: [<ffffffff81259cbe>] ____fput+0xe/0x10
 kernel: [<ffffffff810c60c4>] task_work_run+0xc4/0xf0
 kernel: [<ffffffff81019d31>] do_notify_resume+0x61/0x90
 kernel: [<ffffffff8182dee2>] int_signal+0x12/0x17
 kernel: 2 locks held by ModemManager/604:
 kernel: #0:  (&tty->legacy_mutex){+.+.+.}, at: [<ffffffff8182d870>] tty_lock_nested+0x40/0x90
 kernel: #1:  (&port->mutex){+.+.+.}, at: [<ffffffff814f2365>] tty_port_shutdown+0x25/0xb0
 systemd: ModemManager.service stop-sigterm timed out. Killing.
 ...


77-mm-usb-device-blacklist.rules.patch:

Starting Modem Manager...
<info>  ModemManager (version 1.4.0-1.fc22) starting in system bus...
Started Modem Manager.
<warn>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:04.1/usb1/1-4': not supported by any plugin
<warn>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:0a.0': not supported by any plugin
<info>  Creating modem with plugin 'Generic' and '1' ports
<info>  Modem for device at '/sys/devices/pci0000:00/0000:00:04.0/usb2/2-3' successfully created
<warn>  Modem couldn't be initialized: couldn't load current capabilities: Failed to determine modem capabilities.

$ (cd /sys/devices/pci0000:00/0000:00:04.1/usb1/1-4 && echo $(cat idVendor idProduct manufacturer product))
9710 7830 Moschip Semiconductor USB-MAC Controller
$ lsusb -d 9710:7830
Bus 001 Device 005: ID 9710:7830 MosChip Semiconductor MCS7830 10/100 Mbps Ethernet adapter

$ (cd /sys/devices/pci0000:00/0000:00:0a.0 && echo $(cat vendor device))
0x10de 0x0ab0
$ lspci -nn -d 10de:0ab0
00:0a.0 Ethernet controller [0200]: NVIDIA Corporation MCP79 Ethernet [10de:0ab0] (rev b1)

$ (cd /sys/devices/pci0000:00/0000:00:04.0/usb2/2-3 && echo $(cat idVendor idProduct manufacturer product))
0572 1329 Conexant USB Modem
$ lsusb -d 0572:1329
Bus 002 Device 003: ID 0572:1329 Conexant Systems (Rockwell), Inc. 

$ lsusb -d 0764:0501
Bus 002 Device 002: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS

---
 src/77-mm-usb-device-blacklist.rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/77-mm-usb-device-blacklist.rules b/src/77-mm-usb-device-blacklist.rules
index 5076ea0..ce24223 100644
--- a/src/77-mm-usb-device-blacklist.rules
+++ b/src/77-mm-usb-device-blacklist.rules
@@ -37,7 +37,7 @@ ATTRS{idVendor}=="0463", ATTRS{idProduct}=="ffff", ENV{ID_MM_DEVICE_IGNORE}="1"
 
 # CyberPower 900AVR/BC900D
 ATTRS{idVendor}=="0764", ATTRS{idProduct}=="0005", ENV{ID_MM_DEVICE_IGNORE}="1"
-# CyberPower CP1200AVR/BC1200D
+# CyberPower CP1200AVR/BC1200D/EX650E
 ATTRS{idVendor}=="0764", ATTRS{idProduct}=="0501", ENV{ID_MM_DEVICE_IGNORE}="1"
 
 # Various Belkin devices
@@ -128,4 +128,10 @@ ATTRS{idVendor}=="0425", ATTRS{idProduct}=="0408", ENV{ID_MM_DEVICE_IGNORE}="1"
 # Infineon Flashloader used by Intel XMM modem bootloader
 ATTRS{idVendor}=="8087", ATTRS{idProduct}=="0716", ENV{ID_MM_DEVICE_IGNORE}="1"
 
+# Moschip Semiconductor USB-MAC Controller (MCS7830 10/100 Mbps Ethernet adapter)
+ATTRS{idVendor}=="9710", ATTRS{idProduct}=="7830", ENV{ID_MM_DEVICE_IGNORE}="1"
+
+# Conexant Systems (Rockwell), Inc. USB Modem (TRENDnet TFM-561U 56K USB Modem)
+ATTRS{idVendor}=="0572", ATTRS{idProduct}=="1329", ENV{ID_MM_DEVICE_IGNORE}="1"
+
 LABEL="mm_usb_device_blacklist_end"
-- 
1.9.3


poma




More information about the ModemManager-devel mailing list