linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Stezenbach <js@sig21.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev keymaps: support for force_release quirk
Date: Fri, 27 Nov 2009 15:48:50 +0000	[thread overview]
Message-ID: <20091127154850.GA26932@sig21.net> (raw)
In-Reply-To: <20091126173912.GA25185@sig21.net>

On Fri, Nov 27, 2009 at 04:33:51PM +0100, Martin Pitt wrote:
> Johannes Stezenbach [2009-11-26 18:39 +0100]:
> 
> > Since many models share samsung-other, but only
> > three had the force_release handled in to the kernel
> > I'd also add a flag to keymap.c so that the
> > forced_release flag is only applied when the --force-release/-f
> > switch is present.
> 
> I don't understand this. We need separate rules for the quirked vs.
> non-quirked models anyway, so why would we need this -f switch if we
> already specify it in the rules? I think I see what you try to do, but
> IMHO it would just make matters more confusing, and not really help to
> reduce rules either.

Well, 95-keymap.rules currently has:

ENV{DMI_VENDOR}="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}="*NC10*|*NC20*|*SP55S*|*SQ45S70S*|*SX60P*|*SX22S*|*SX30S*|*R59P/R60P/R61P*|*Q210*|*Q310*|*X05*|*P560*|*R560*", RUN+="keymap $name samsung-other"

But the kernel drivers/input/keyboard/atkbd.c only has the
force_release quirk for NC10, NC20 and SQ45S70S.  I simply
don't know if at does harm to apply the force_release quirk
to the other models which share samsung-other.

Another solution than the proposed -f switch would be
to copy samsung-other to samsung-other-force-release and
add the force_release flag only to the latter.

> > Should I go forward and try to implement it?
> 
> That would be great!

OK, I'll try to work something out over the weekend.


Thanks
Johannes

  parent reply	other threads:[~2009-11-27 15:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-26 17:39 udev keymaps: support for force_release quirk Johannes Stezenbach
2009-11-27 15:33 ` Martin Pitt
2009-11-27 15:48 ` Johannes Stezenbach [this message]
2009-11-27 15:57 ` Martin Pitt
2009-11-28 19:14 ` Greg KH
2009-11-28 21:36 ` Johannes Stezenbach
2009-11-30 23:27 ` Johannes Stezenbach
2009-12-01  1:28 ` Kay Sievers
2009-12-01  1:37 ` Dmitry Torokhov
2009-12-01  1:49 ` Kay Sievers
2009-12-01  1:52 ` Johannes Stezenbach
2009-12-01  1:55 ` Kay Sievers
2009-12-01  2:21 ` Johannes Stezenbach
2009-12-03  3:12 ` Dmitry Torokhov
2009-12-06 21:49 ` Johannes Stezenbach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091127154850.GA26932@sig21.net \
    --to=js@sig21.net \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).