* udev rule for hid2hci and Logitech dongles doesn't work with kernels >= 3.6
@ 2012-11-20 11:37 Alexander Holler
2012-11-20 11:47 ` [PATCH] hid2hci: change subsystem in udev rule from usb to usb* Alexander Holler
0 siblings, 1 reply; 4+ messages in thread
From: Alexander Holler @ 2012-11-20 11:37 UTC (permalink / raw)
To: linux-bluetooth
Hello,
I've recently noticed that the udev rule for hid2hci with Logitech
dongles doesn't work anymore. The reason is commit
7e97243c2080ecae7129e83635227fdebd4feef6 which changes the class
(subsystem) for those dongles from usb to usbmisc. I've already filed a
bug for Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=877998) but
I thought I should write a note here too, to inform non-Fedora users too.
My suggestion is to use "usb*" instead of "usb" for the subsystem, this
works with all kernels regardless if the subsystem is "usb" or "usbmisc".
Regards,
Alexander
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] hid2hci: change subsystem in udev rule from usb to usb*
2012-11-20 11:37 udev rule for hid2hci and Logitech dongles doesn't work with kernels >= 3.6 Alexander Holler
@ 2012-11-20 11:47 ` Alexander Holler
2012-11-20 12:23 ` Johan Hedberg
0 siblings, 1 reply; 4+ messages in thread
From: Alexander Holler @ 2012-11-20 11:47 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Alexander Holler
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@ahsoftware.de>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] hid2hci: change subsystem in udev rule from usb to usb*
2012-11-20 11:47 ` [PATCH] hid2hci: change subsystem in udev rule from usb to usb* Alexander Holler
@ 2012-11-20 12:23 ` Johan Hedberg
2012-11-20 12:31 ` Alexander Holler
0 siblings, 1 reply; 4+ messages in thread
From: Johan Hedberg @ 2012-11-20 12:23 UTC (permalink / raw)
To: Alexander Holler; +Cc: linux-bluetooth
Hi Alexander,
On Tue, Nov 20, 2012, Alexander Holler wrote:
> 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@ahsoftware.de>
> ---
> scripts/bluetooth-hid2hci.rules | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks. The patch has been applied (after fixing up the commit message
to not include the signed-off-by and to have sensible line widths).
Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hid2hci: change subsystem in udev rule from usb to usb*
2012-11-20 12:23 ` Johan Hedberg
@ 2012-11-20 12:31 ` Alexander Holler
0 siblings, 0 replies; 4+ messages in thread
From: Alexander Holler @ 2012-11-20 12:31 UTC (permalink / raw)
To: linux-bluetooth
Am 20.11.2012 13:23, schrieb Johan Hedberg:
> Thanks. The patch has been applied (after fixing up the commit message
> to not include the signed-off-by and to have sensible line widths).
Thanks and sorry for the long lines. I've used to use the comments as
reference (when invoking git commit), but unfortunately they got longer
since they recently got translated (to german) when using LANG != C.
Regards,
Alexander
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-20 12:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 11:37 udev rule for hid2hci and Logitech dongles doesn't work with kernels >= 3.6 Alexander Holler
2012-11-20 11:47 ` [PATCH] hid2hci: change subsystem in udev rule from usb to usb* Alexander Holler
2012-11-20 12:23 ` Johan Hedberg
2012-11-20 12:31 ` Alexander Holler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).