From patchwork Wed Jan 20 09:16:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keng-Yu Lin X-Patchwork-Id: 43264 X-Patchwork-Delegate: stefan.bader@canonical.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 3E1D8B7CC1 for ; Wed, 20 Jan 2010 20:17:22 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1NXWgZ-0005oT-Pi; Wed, 20 Jan 2010 09:17:11 +0000 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1NXWgX-0005lG-F8 for kernel-team@lists.ubuntu.com; Wed, 20 Jan 2010 09:17:09 +0000 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1NXWgX-0000JU-CX; Wed, 20 Jan 2010 09:17:09 +0000 Received: from [210.242.151.101] (helo=canonical.com) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1NXWgW-00065C-Nv; Wed, 20 Jan 2010 09:17:09 +0000 From: Keng-Yu Lin To: kernel-team@lists.ubuntu.com Subject: [PATCH][SRU] UBUNTU: SAUCE: (drop after 2.6.31) input: Add hotkey quirk for Samsung Q210/P210 laptops Date: Wed, 20 Jan 2010 17:16:59 +0800 Message-Id: <1263979019-30734-1-git-send-email-keng-yu.lin@canonical.com> X-Mailer: git-send-email 1.6.3.3 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com SRU Justification: Impact: Some hotkeys do not produce key release events so not function well. Fix: Add quirks in atkbd.c to force a key release. (in 2.6.32, this can be done via /sys from userspace) Testcase: A user reported this patch works well. - From 10cc63dff1ccb95432ddded56786f4ad5dbbde87 Mon Sep 17 00:00:00 2001 From: Keng-Yu Lin Date: Fri, 11 Dec 2009 11:24:39 +0800 Subject: [PATCH] UBUNTU: SAUCE: (drop after 2.6.31) input: Add hotkey quirk for Samsung Q210/P210 laptops Hotkeys do not produce release events. Add the quirk to force a key release. In 2.6.32, a /sys interface is provided to handle setting from userspace. It is not necessary to apply this patch to newer version than 2.6.31. OriginalAuthor: Alexander Huhlaev BugLink: http://bugs.launchpad.net/bugs/385683 Signed-off-by: Keng-Yu Lin Acked-by: Tim Gardner Acked-by: Stefan Bader Acked-by: Colin King --- drivers/input/keyboard/atkbd.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index 6529fe9..5f32d73 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c @@ -1625,6 +1625,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = { .driver_data = atkbd_samsung_forced_release_keys, }, { + .ident = "Samsung Q210/P210", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), + DMI_MATCH(DMI_PRODUCT_NAME, "Q210/P210"), + }, + .callback = atkbd_setup_forced_release, + .driver_data = atkbd_samsung_forced_release_keys, + }, + { .ident = "Fujitsu Amilo PA 1510", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),