rpms/kernel/devel hid-ignore-all-recent-imon-devices.patch, NONE, 1.1 TODO, 1.65, 1.66 kernel.spec, 1.1682, 1.1683
Jarod Wilson
jwilson at fedoraproject.org
Mon Aug 3 13:25:54 UTC 2009
- Previous message: rpms/clive/devel .cvsignore, 1.17, 1.18 clive.spec, 1.20, 1.21 sources, 1.17, 1.18
- Next message: rpms/clive/F-11 .cvsignore, 1.17, 1.18 clive.spec, 1.19, 1.20 sources, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwilson
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15607
Modified Files:
TODO kernel.spec
Added Files:
hid-ignore-all-recent-imon-devices.patch
Log Message:
* Mon Aug 03 2009 Jarod Wilson <jarod at redhat.com>
- make usbhid driver ignore all recent SoundGraph iMON devices, so the
lirc_imon driver can grab them instead
hid-ignore-all-recent-imon-devices.patch:
hid-core.c | 10 +++++-----
hid-ids.h | 7 ++-----
2 files changed, 7 insertions(+), 10 deletions(-)
--- NEW FILE hid-ignore-all-recent-imon-devices.patch ---
[PATCH] hid: ignore all recent SoundGraph iMON devices
After some inspection of the Windows iMON driver, several additional
device IDs were added to the lirc_imon driver. At least a few of these
have been seen in the wild, and require manual quirking to keep the
usbhid driver from binding to them. Rather than list out every single
device, ignore the entire device ID range, 0x0034 - 0x0046. Some of
these may not advertise themselves as HID devices, but no harm done to
such devices anyway.
Signed-off-by: Jarod Wilson <jarod at redhat.com>
---
drivers/hid/hid-core.c | 10 +++++-----
drivers/hid/hid-ids.h | 7 ++-----
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 5eb10c2..18bf803 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1623,11 +1623,6 @@ static const struct hid_device_id hid_ignore_list[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_PANJIT, 0x0003) },
{ HID_USB_DEVICE(USB_VENDOR_ID_PANJIT, 0x0004) },
{ HID_USB_DEVICE(USB_VENDOR_ID_POWERCOM, USB_DEVICE_ID_POWERCOM_UPS) },
- { HID_USB_DEVICE(USB_VENDOR_ID_SOUNDGRAPH, USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD) },
- { HID_USB_DEVICE(USB_VENDOR_ID_SOUNDGRAPH, USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD2) },
- { HID_USB_DEVICE(USB_VENDOR_ID_SOUNDGRAPH, USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD3) },
- { HID_USB_DEVICE(USB_VENDOR_ID_SOUNDGRAPH, USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD4) },
- { HID_USB_DEVICE(USB_VENDOR_ID_SOUNDGRAPH, USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD5) },
{ HID_USB_DEVICE(USB_VENDOR_ID_TENX, USB_DEVICE_ID_TENX_IBUDDY1) },
{ HID_USB_DEVICE(USB_VENDOR_ID_TENX, USB_DEVICE_ID_TENX_IBUDDY2) },
{ HID_USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_LABPRO) },
@@ -1694,6 +1689,11 @@ static bool hid_ignore(struct hid_device *hdev)
hdev->product <= USB_DEVICE_ID_LOGITECH_HARMONY_LAST)
return true;
break;
+ case USB_VENDOR_ID_SOUNDGRAPH:
+ if (hdev->product >= USB_DEVICE_ID_SOUNDGRAPH_IMON_FIRST &&
+ hdev->product <= USB_DEVICE_ID_SOUNDGRAPH_IMON_LAST)
+ return true;
+ break;
}
if (hdev->type == HID_TYPE_USBMOUSE &&
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 6301010..989a3ba 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -376,11 +376,8 @@
#define USB_DEVICE_ID_SONY_PS3_CONTROLLER 0x0268
#define USB_VENDOR_ID_SOUNDGRAPH 0x15c2
-#define USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD 0x0038
-#define USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD2 0x0036
-#define USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD3 0x0034
-#define USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD4 0x0044
-#define USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD5 0x0045
+#define USB_DEVICE_ID_SOUNDGRAPH_IMON_FIRST 0x0034
+#define USB_DEVICE_ID_SOUNDGRAPH_IMON_LAST 0x0046
#define USB_VENDOR_ID_SUN 0x0430
#define USB_DEVICE_ID_RARITAN_KVM_DONGLE 0xcdab
Index: TODO
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/TODO,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -p -r1.65 -r1.66
--- TODO 16 Jul 2009 05:32:36 -0000 1.65
+++ TODO 3 Aug 2009 13:25:54 -0000 1.66
@@ -59,8 +59,11 @@
* linux-2.6-execshield.patch
Not interesting to upstream.
-* linux-2.6.29-lirc.patch
* linux-2.6-sysrq-c.patch
+* linux-2.6.31-lirc.patch
+* lirc_streamzap-buffer-rework.patch
+* hdpvr-ir-enable.patch
+* hid-ignore-all-recent-imon-devices.patch
jarod working on upstreaming
* linux-2.6-silence-acpi-blacklist.patch
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.1682
retrieving revision 1.1683
diff -u -p -r1.1682 -r1.1683
--- kernel.spec 3 Aug 2009 06:03:08 -0000 1.1682
+++ kernel.spec 3 Aug 2009 13:25:54 -0000 1.1683
@@ -661,6 +661,7 @@ Patch1000: linux-2.6-cpufreq-ppc-suspend
Patch1515: linux-2.6.31-lirc.patch
Patch1516: lirc_streamzap-buffer-rework.patch
Patch1517: hdpvr-ir-enable.patch
+Patch1518: hid-ignore-all-recent-imon-devices.patch
Patch1550: linux-2.6-ksm.patch
Patch1551: linux-2.6-ksm-kvm.patch
@@ -1263,6 +1264,8 @@ ApplyPatch linux-2.6.31-lirc.patch
ApplyPatch lirc_streamzap-buffer-rework.patch
# enable IR receiver on Hauppauge HD PVR (v4l-dvb merge pending)
ApplyPatch hdpvr-ir-enable.patch
+# tell usbhid to ignore all imon devices (sent upstream 2009.07.31)
+ApplyPatch hid-ignore-all-recent-imon-devices.patch
# Add kernel KSM support
ApplyPatch linux-2.6-ksm.patch
@@ -1940,6 +1943,10 @@ fi
# and build.
%changelog
+* Mon Aug 03 2009 Jarod Wilson <jarod at redhat.com>
+- make usbhid driver ignore all recent SoundGraph iMON devices, so the
+ lirc_imon driver can grab them instead
+
* Mon Aug 03 2009 Dave Airlie <airlied at redhat.com>
- update VGA arb patches
- Previous message: rpms/clive/devel .cvsignore, 1.17, 1.18 clive.spec, 1.20, 1.21 sources, 1.17, 1.18
- Next message: rpms/clive/F-11 .cvsignore, 1.17, 1.18 clive.spec, 1.19, 1.20 sources, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list