]>
Commit | Line | Data |
---|---|---|
4e4a1f5b GKH |
1 | From cebbert@redhat.com Tue Nov 4 15:05:47 2008 |
2 | From: Matthew Garrett <mjg59@srcf.ucam.org> | |
3 | Date: Fri, 31 Oct 2008 17:29:07 -0400 | |
4 | Subject: Input: atkbd - expand Latitude's force release quirk to other Dells | |
5 | To: stable@kernel.org | |
6 | Cc: Dmitry Torokhov <dtor@mail.ru> | |
7 | Message-ID: <20081031172907.2d3e43a7@redhat.com> | |
8 | ||
9 | ||
10 | From: Matthew Garrett <mjg59@srcf.ucam.org> | |
11 | ||
12 | commit 61579ba83934d397a4fa2bb7372de9ae112587d5 upstream. | |
13 | ||
14 | Input: atkbd - expand Latitude's force release quirk to other Dells | |
15 | ||
16 | Dell laptops fail to send key up events for several of their special | |
17 | keys. There's an existing quirk in the kernel to handle this, but it's | |
18 | limited to the Latitude range. This patch extends it to cover all | |
19 | portable Dells. | |
20 | ||
21 | Signed-off-by: Matthew Garrett <mjg@redhat.com> | |
22 | Signed-off-by: Dmitry Torokhov <dtor@mail.ru> | |
23 | Cc: Chuck Ebbert <cebbert@redhat.com> | |
24 | Signed-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", |