Add support for eject key on Dell laptops (#513530)

This commit is contained in:
Chuck Ebbert 2010-09-03 07:53:46 -04:00
parent ffcfd3fb76
commit 7898ca3d1b
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From: Islam Amer <pharon@gmail.com>
Date: Thu, 24 Jun 2010 17:39:47 +0000 (-0400)
Subject: dell-wmi: Add support for eject key on Dell Studio 1555
X-Git-Tag: v2.6.36-rc1~579^2~64
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=d5164dbf1f651d1e955b158fb70a9c844cc91cd1
dell-wmi: Add support for eject key on Dell Studio 1555
Fixes pressing the eject key on Dell Studio 1555 does not work and produces
message :
dell-wmi: Unknown key 0 pressed
Signed-off-by: Islam Amer <pharon@gmail.com>
---
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 66f53c3..12a8e6f 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -221,7 +221,7 @@ static void dell_wmi_notify(u32 value, void *context)
return;
}
- if (dell_new_hk_type)
+ if (dell_new_hk_type || buffer_entry[1] == 0x0)
reported_key = (int)buffer_entry[2];
else
reported_key = (int)buffer_entry[1] & 0xffff;

View File

@ -48,7 +48,7 @@ Summary: The Linux kernel
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
# scripts/rebase.sh should be made to do that for you, actually.
#
%global baserelease 49
%global baserelease 50
%global fedora_build %{baserelease}
# base_sublevel is the kernel version we're starting with and patching
@ -766,6 +766,7 @@ Patch12460: xfs-move-aio-completion-after-unwritten-extent-conversion.patch
Patch12470: drivers-hwmon-coretemp-c-detect-the-thermal-sensors-by-cpuid.patch
Patch12480: kprobes-x86-fix-kprobes-to-skip-prefixes-correctly.patch
Patch12490: dell-wmi-add-support-for-eject-key.patch
%endif
@ -1426,6 +1427,9 @@ ApplyPatch drivers-hwmon-coretemp-c-detect-the-thermal-sensors-by-cpuid.patch
# bz #610941
ApplyPatch kprobes-x86-fix-kprobes-to-skip-prefixes-correctly.patch
# bz #513530
ApplyPatch dell-wmi-add-support-for-eject-key.patch
# END OF PATCH APPLICATIONS
%endif
@ -2047,6 +2051,10 @@ fi
%changelog
* Fri Sep 03 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.34.6-50
- Re-enable I2O, but only for 32-bit x86 (#629676)
- Add support for eject key on Dell laptops (#513530)
* Thu Sep 02 2010 Dave Airlie <airlied@redhat.com> 2.6.34.6-49
- fix radeon suspend/resume issues and two other minor patches