]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.27.5/input-atkbd-expand-latitude-s-force-release-quirk-to-other-dells.patch
Linux 5.1.5
[thirdparty/kernel/stable-queue.git] / releases / 2.6.27.5 / input-atkbd-expand-latitude-s-force-release-quirk-to-other-dells.patch
CommitLineData
4e4a1f5b
GKH
1From cebbert@redhat.com Tue Nov 4 15:05:47 2008
2From: Matthew Garrett <mjg59@srcf.ucam.org>
3Date: Fri, 31 Oct 2008 17:29:07 -0400
4Subject: Input: atkbd - expand Latitude's force release quirk to other Dells
5To: stable@kernel.org
6Cc: Dmitry Torokhov <dtor@mail.ru>
7Message-ID: <20081031172907.2d3e43a7@redhat.com>
8
9
10From: Matthew Garrett <mjg59@srcf.ucam.org>
11
12commit 61579ba83934d397a4fa2bb7372de9ae112587d5 upstream.
13
14Input: atkbd - expand Latitude's force release quirk to other Dells
15
16Dell laptops fail to send key up events for several of their special
17keys. There's an existing quirk in the kernel to handle this, but it's
18limited to the Latitude range. This patch extends it to cover all
19portable Dells.
20
21Signed-off-by: Matthew Garrett <mjg@redhat.com>
22Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
23Cc: Chuck Ebbert <cebbert@redhat.com>
24Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
25
26---
27 drivers/input/keyboard/atkbd.c | 10 +++++-----
28 1 file changed, 5 insertions(+), 5 deletions(-)
29
30--- a/drivers/input/keyboard/atkbd.c
31+++ b/drivers/input/keyboard/atkbd.c
32@@ -834,10 +834,10 @@ static void atkbd_disconnect(struct seri
33 }
34
35 /*
36- * Most special keys (Fn+F?) on Dell Latitudes do not generate release
37+ * Most special keys (Fn+F?) on Dell laptops do not generate release
38 * events so we have to do it ourselves.
39 */
40-static void atkbd_latitude_keymap_fixup(struct atkbd *atkbd)
41+static void atkbd_dell_laptop_keymap_fixup(struct atkbd *atkbd)
42 {
43 const unsigned int forced_release_keys[] = {
44 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8f, 0x93,
45@@ -1461,13 +1461,13 @@ static int __init atkbd_setup_fixup(cons
46
47 static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
48 {
49- .ident = "Dell Latitude series",
50+ .ident = "Dell Laptop",
51 .matches = {
52 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
53- DMI_MATCH(DMI_PRODUCT_NAME, "Latitude"),
54+ DMI_MATCH(DMI_CHASSIS_TYPE, "8"), /* Portable */
55 },
56 .callback = atkbd_setup_fixup,
57- .driver_data = atkbd_latitude_keymap_fixup,
58+ .driver_data = atkbd_dell_laptop_keymap_fixup,
59 },
60 {
61 .ident = "HP 2133",