40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
|
From: Thomas Renninger <trenn@suse.de>
|
||
|
Subject: x86 platform drivers: hp-wmi Catch and log unkown event and key codes correctly
|
||
|
References: bnc#598059
|
||
|
Patch-Mainline: submitted
|
||
|
|
||
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
||
|
CC: mjg@redhat.com
|
||
|
CC: linux-acpi@vger.kernel.org
|
||
|
|
||
|
---
|
||
|
drivers/platform/x86/hp-wmi.c | 8 +++++---
|
||
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
||
|
|
||
|
Index: linux-2.6.33-master/drivers/platform/x86/hp-wmi.c
|
||
|
===================================================================
|
||
|
--- linux-2.6.33-master.orig/drivers/platform/x86/hp-wmi.c
|
||
|
+++ linux-2.6.33-master/drivers/platform/x86/hp-wmi.c
|
||
|
@@ -386,7 +386,9 @@ static void hp_wmi_notify(u32 value, voi
|
||
|
input_sync(hp_wmi_input_dev);
|
||
|
break;
|
||
|
}
|
||
|
- }
|
||
|
+ } else
|
||
|
+ printk(KERN_INFO "HP WMI: Unknown key code - 0x%x\n",
|
||
|
+ key_code);
|
||
|
break;
|
||
|
case HPWMI_WIRELESS:
|
||
|
if (wifi_rfkill)
|
||
|
@@ -403,8 +405,8 @@ static void hp_wmi_notify(u32 value, voi
|
||
|
hp_wmi_get_hw_state(HPWMI_WWAN));
|
||
|
break;
|
||
|
default:
|
||
|
- printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n",
|
||
|
- eventcode);
|
||
|
+ printk(KERN_INFO "HP WMI: Unknown eventcode - %d\n",
|
||
|
+ eventcode);
|
||
|
break;
|
||
|
}
|
||
|
}
|