diff mbox

[SRU] UBUNTU: SAUCE: (drop after 2.6.31) input: Add hotkey quirk for Samsung Q210/P210 laptops

Message ID 1263979019-30734-1-git-send-email-keng-yu.lin@canonical.com
State Accepted
Delegated to: Stefan Bader
Headers show

Commit Message

Keng-Yu Lin Jan. 20, 2010, 9:16 a.m. UTC
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 <keng-yu.lin@canonical.com>
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 <sancheolz@gmail.com>
BugLink: http://bugs.launchpad.net/bugs/385683

Signed-off-by: Keng-Yu Lin <keng-yu.lin@canonical.com>
---
 drivers/input/keyboard/atkbd.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

Comments

Tim Gardner Jan. 20, 2010, 2:05 p.m. UTC | #1
Keng-Yu Lin wrote:
> 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 <keng-yu.lin@canonical.com>
> 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 <sancheolz@gmail.com>
> BugLink: http://bugs.launchpad.net/bugs/385683
> 
> Signed-off-by: Keng-Yu Lin <keng-yu.lin@canonical.com>
> ---
>  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"),

Looks right to me.

Acked-by: Tim Gardner <tim.gardner@canonical.com>
Stefan Bader Jan. 22, 2010, 2:28 p.m. UTC | #2
Keng-Yu Lin wrote:
> 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 <keng-yu.lin@canonical.com>
> 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 <sancheolz@gmail.com>
> BugLink: http://bugs.launchpad.net/bugs/385683
> 
> Signed-off-by: Keng-Yu Lin <keng-yu.lin@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
> ---
>  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"),
Colin Ian King Jan. 22, 2010, 2:34 p.m. UTC | #3
On Wed, 2010-01-20 at 17:16 +0800, Keng-Yu Lin wrote:
> 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 <keng-yu.lin@canonical.com>
> 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 <sancheolz@gmail.com>
> BugLink: http://bugs.launchpad.net/bugs/385683
> 
> Signed-off-by: Keng-Yu Lin <keng-yu.lin@canonical.com>
> ---
>  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"),
> -- 
> 1.6.3.3
> 
> 
Yep, looks sane to me.

Acked-by: Colin King <colin.king@canonical.com>
Stefan Bader Jan. 22, 2010, 4:42 p.m. UTC | #4
Applied to Karmic
diff mbox

Patch

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"),