linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input: atkbd - add forced release kays quirk for Samsung N130
@ 2009-11-16 17:18 Johannes Stezenbach
  2009-11-16 19:54 ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Stezenbach @ 2009-11-16 17:18 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: Andrew Morton, Jiri Kosina, Linus Torvalds, linux-input,
	linux-kernel

Samsung N130 has the same function key quirks as the NC10.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
---
It would be nice if this could go into 2.6.32.  It might also be
suitable for stable.


diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 4452eab..ad2dc7d 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1646,6 +1646,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
 		.driver_data = atkbd_samsung_forced_release_keys,
 	},
 	{
+		.ident = "Samsung N130",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "N130"),
+		},
+		.callback = atkbd_setup_forced_release,
+		.driver_data = atkbd_samsung_forced_release_keys,
+	},
+	{
 		.ident = "Samsung SQ45S70S",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),

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

* Re: [PATCH] input: atkbd - add forced release kays quirk for Samsung N130
  2009-11-16 17:18 [PATCH] input: atkbd - add forced release kays quirk for Samsung N130 Johannes Stezenbach
@ 2009-11-16 19:54 ` Dmitry Torokhov
  2009-11-16 21:34   ` Johannes Stezenbach
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2009-11-16 19:54 UTC (permalink / raw)
  To: Johannes Stezenbach
  Cc: Andrew Morton, Jiri Kosina, Linus Torvalds, linux-input,
	linux-kernel

Hi Johannes,

On Mon, Nov 16, 2009 at 06:18:14PM +0100, Johannes Stezenbach wrote:
> Samsung N130 has the same function key quirks as the NC10.
> 
> Signed-off-by: Johannes Stezenbach <js@sig21.net>
> ---
> It would be nice if this could go into 2.6.32.  It might also be
> suitable for stable.

2.6.32 will allow manipulating force release quirk from userspace
(sysfs) so I stopped accepting in-kernel quirks like this one.

Thanks.

-- 
Dmitry

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

* Re: [PATCH] input: atkbd - add forced release kays quirk for Samsung N130
  2009-11-16 19:54 ` Dmitry Torokhov
@ 2009-11-16 21:34   ` Johannes Stezenbach
  2009-11-18  5:16     ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Stezenbach @ 2009-11-16 21:34 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: Andrew Morton, Jiri Kosina, Linus Torvalds, linux-input,
	linux-kernel

Hi Dmitry,

On Mon, Nov 16, 2009 at 11:54:43AM -0800, Dmitry Torokhov wrote:
> On Mon, Nov 16, 2009 at 06:18:14PM +0100, Johannes Stezenbach wrote:
> > Samsung N130 has the same function key quirks as the NC10.
> > 
> > Signed-off-by: Johannes Stezenbach <js@sig21.net>
> > ---
> > It would be nice if this could go into 2.6.32.  It might also be
> > suitable for stable.
> 
> 2.6.32 will allow manipulating force release quirk from userspace
> (sysfs) so I stopped accepting in-kernel quirks like this one.

OK, makes sense.  Will this be put in udev along with
the keymap setup for the function keys?  If yes, is
there already an example how to do it correctly so 
I can submit a patch to add the N130 support there?


Thanks
Johannes

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

* Re: [PATCH] input: atkbd - add forced release kays quirk for Samsung N130
  2009-11-16 21:34   ` Johannes Stezenbach
@ 2009-11-18  5:16     ` Dmitry Torokhov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2009-11-18  5:16 UTC (permalink / raw)
  To: Johannes Stezenbach
  Cc: Andrew Morton, Jiri Kosina, Linus Torvalds, linux-input,
	linux-kernel

On Mon, Nov 16, 2009 at 10:34:25PM +0100, Johannes Stezenbach wrote:
> Hi Dmitry,
> 
> On Mon, Nov 16, 2009 at 11:54:43AM -0800, Dmitry Torokhov wrote:
> > On Mon, Nov 16, 2009 at 06:18:14PM +0100, Johannes Stezenbach wrote:
> > > Samsung N130 has the same function key quirks as the NC10.
> > > 
> > > Signed-off-by: Johannes Stezenbach <js@sig21.net>
> > > ---
> > > It would be nice if this could go into 2.6.32.  It might also be
> > > suitable for stable.
> > 
> > 2.6.32 will allow manipulating force release quirk from userspace
> > (sysfs) so I stopped accepting in-kernel quirks like this one.
> 
> OK, makes sense.  Will this be put in udev along with
> the keymap setup for the function keys? 

I think that is the best place to put it, yes.

> If yes, is
> there already an example how to do it correctly so 
> I can submit a patch to add the N130 support there?

No, but you can be the first and pave the road ;)

-- 
Dmitry

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

end of thread, other threads:[~2009-11-18  5:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 17:18 [PATCH] input: atkbd - add forced release kays quirk for Samsung N130 Johannes Stezenbach
2009-11-16 19:54 ` Dmitry Torokhov
2009-11-16 21:34   ` Johannes Stezenbach
2009-11-18  5:16     ` 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).