linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input: atkbd - Fix broken keyboard in another LG laptop
@ 2014-09-10 18:06 Jaime Velasco Juan
  2014-09-10 20:52 ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Jaime Velasco Juan @ 2014-09-10 18:06 UTC (permalink / raw)
  To: linux-input; +Cc: stable, Dmitry Torokhov, Sheng-Liang Song

This model has the same quirk as others, see 3d725caa9dcc "Input:
atkbd - fix keyboard not working on some LG laptops"

Cc: stable@vger.kernel.org
Signed-off-by: Jaime Velasco Juan <jsagarribay@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Sheng-Liang Song <ssl@chromium.org>
---
 drivers/input/keyboard/atkbd.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 2dd1d0d..a58653c 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1802,6 +1802,13 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = {
 		},
 		.callback = atkbd_deactivate_fixup,
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "LW60-F27B"),
+		},
+		.callback = atkbd_deactivate_fixup,
+	},
 	{ }
 };
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] input: atkbd - Fix broken keyboard in another LG laptop
  2014-09-10 18:06 [PATCH] input: atkbd - Fix broken keyboard in another LG laptop Jaime Velasco Juan
@ 2014-09-10 20:52 ` Dmitry Torokhov
  2014-09-11 16:53   ` Jaime Velasco Juan
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2014-09-10 20:52 UTC (permalink / raw)
  To: Jaime Velasco Juan; +Cc: linux-input, stable, Sheng-Liang Song

Hi Jamie,

On Wed, Sep 10, 2014 at 07:06:14PM +0100, Jaime Velasco Juan wrote:
> This model has the same quirk as others, see 3d725caa9dcc "Input:
> atkbd - fix keyboard not working on some LG laptops"
> 

How about the patch below instead?

Thanks!

-- 
Dmitry

Input: atkbd - do not try 'deactivate' keyboard on any LG laptops

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>

We are getting more and more reports about LG laptops not having
functioning keyboard if we try to deactivate keyboard during probe.
Given that having keyboard deactivated is merely "nice to have"
instead of a hard requirement for probing, let's disable it on all
LG boxes instead of trying to hunt down particular models.

This change is prompted by patches trying to add "LG Electronics"/"ROCKY"
and "LG Electronics"/"LW60-F27B" to the DMI list.

https://bugzilla.kernel.org/show_bug.cgi?id=77051

Cc: stable@vger.kernel.org
Reported-by: Jaime Velasco Juan <jsagarribay@gmail.com>
Reported-by: Georgios Tsalikis <georgios@tsalikis.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/input/keyboard/atkbd.c |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 2dd1d0d..6f5d795 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1791,14 +1791,6 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = {
 	{
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
-			DMI_MATCH(DMI_PRODUCT_NAME, "LW25-B7HV"),
-		},
-		.callback = atkbd_deactivate_fixup,
-	},
-	{
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
-			DMI_MATCH(DMI_PRODUCT_NAME, "P1-J273B"),
 		},
 		.callback = atkbd_deactivate_fixup,
 	},

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] input: atkbd - Fix broken keyboard in another LG laptop
  2014-09-10 20:52 ` Dmitry Torokhov
@ 2014-09-11 16:53   ` Jaime Velasco Juan
  2014-09-11 17:03     ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Jaime Velasco Juan @ 2014-09-11 16:53 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input, stable, Sheng-Liang Song

Dmitry Torokhov <dmitry.torokhov@gmail.com> writes:

> Hi Jamie,
>
> On Wed, Sep 10, 2014 at 07:06:14PM +0100, Jaime Velasco Juan wrote:
>> This model has the same quirk as others, see 3d725caa9dcc "Input:
>> atkbd - fix keyboard not working on some LG laptops"
>> 
>
> How about the patch below instead?
>

It works for me just the same, thanks.

Regards

> -- 
> Dmitry
>
> Input: atkbd - do not try 'deactivate' keyboard on any LG laptops
>
> From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
>
> We are getting more and more reports about LG laptops not having
> functioning keyboard if we try to deactivate keyboard during probe.
> Given that having keyboard deactivated is merely "nice to have"
> instead of a hard requirement for probing, let's disable it on all
> LG boxes instead of trying to hunt down particular models.
>
> This change is prompted by patches trying to add "LG Electronics"/"ROCKY"
> and "LG Electronics"/"LW60-F27B" to the DMI list.
>
> https://bugzilla.kernel.org/show_bug.cgi?id=77051
>
> Cc: stable@vger.kernel.org
> Reported-by: Jaime Velasco Juan <jsagarribay@gmail.com>
> Reported-by: Georgios Tsalikis <georgios@tsalikis.net>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---
>  drivers/input/keyboard/atkbd.c |    8 --------
>  1 file changed, 8 deletions(-)
>
> diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
> index 2dd1d0d..6f5d795 100644
> --- a/drivers/input/keyboard/atkbd.c
> +++ b/drivers/input/keyboard/atkbd.c
> @@ -1791,14 +1791,6 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = {
>  	{
>  		.matches = {
>  			DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
> -			DMI_MATCH(DMI_PRODUCT_NAME, "LW25-B7HV"),
> -		},
> -		.callback = atkbd_deactivate_fixup,
> -	},
> -	{
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
> -			DMI_MATCH(DMI_PRODUCT_NAME, "P1-J273B"),
>  		},
>  		.callback = atkbd_deactivate_fixup,
>  	},

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] input: atkbd - Fix broken keyboard in another LG laptop
  2014-09-11 16:53   ` Jaime Velasco Juan
@ 2014-09-11 17:03     ` Dmitry Torokhov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2014-09-11 17:03 UTC (permalink / raw)
  To: Jaime Velasco Juan; +Cc: linux-input, stable, Sheng-Liang Song

On Thu, Sep 11, 2014 at 05:53:08PM +0100, Jaime Velasco Juan wrote:
> Dmitry Torokhov <dmitry.torokhov@gmail.com> writes:
> 
> > Hi Jamie,
> >
> > On Wed, Sep 10, 2014 at 07:06:14PM +0100, Jaime Velasco Juan wrote:
> >> This model has the same quirk as others, see 3d725caa9dcc "Input:
> >> atkbd - fix keyboard not working on some LG laptops"
> >> 
> >
> > How about the patch below instead?
> >
> 
> It works for me just the same, thanks.

Thanks, I'll add you as also "tested-by" and queue for the next push.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-11 17:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-10 18:06 [PATCH] input: atkbd - Fix broken keyboard in another LG laptop Jaime Velasco Juan
2014-09-10 20:52 ` Dmitry Torokhov
2014-09-11 16:53   ` Jaime Velasco Juan
2014-09-11 17:03     ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).