[PATCH] hid2hci: change subsystem in udev rule from usb to usb*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With kernel 3.6 (commit 7e97243c2080ecae7129e83635227fdebd4feef6) the class for some
devices (e.g. dongles from Logitech) were changed from usb to usbmisc. As consequence
the udev rule for hid2hci didn't work anymore with kernels >= 3.6.

Changing the subsystem from "usb" to "usb*" matches both "usb" and "usbmisc" and works
with all kernels.

Signed-off-by: Alexander Holler <holler@xxxxxxxxxxxxx>
---
 scripts/bluetooth-hid2hci.rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/bluetooth-hid2hci.rules b/scripts/bluetooth-hid2hci.rules
index 0687c8a..db6bb03 100644
--- a/scripts/bluetooth-hid2hci.rules
+++ b/scripts/bluetooth-hid2hci.rules
@@ -1,7 +1,7 @@
 # do not edit this file, it will be overwritten on update
 
 ACTION=="remove", GOTO="hid2hci_end"
-SUBSYSTEM!="usb", GOTO="hid2hci_end"
+SUBSYSTEM!="usb*", GOTO="hid2hci_end"
 
 # Variety of Dell Bluetooth devices - match on a mouse device that is
 # self powered and where a HID report needs to be sent to switch modes
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux