linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Walmsley <paul@booyaka.com>
To: Jiri Kosina <jikos@jikos.cz>
Cc: Jiri Kosina <jkosina@suse.cz>, linux-input@atrey.karlin.mff.cuni.cz
Subject: Re: [PATCH 0/7] usbhid: quirks cleanup, add dynamic quirks, ConfigFS interface
Date: Thu, 12 Apr 2007 10:14:13 -0600 (MDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0704120945571.9207@utopia.booyaka.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0704121737130.12991@twin.jikos.cz>

On Thu, 12 Apr 2007, Jiri Kosina wrote:

> On Wed, 11 Apr 2007, Paul Walmsley wrote:
>
>> You're talking about using another static struct hid_blacklist array in
>> place of the struct hid_quirk_types array, right?
>
> no, in fact I was just thinking about extending the hid_blacklist[] with
> additional field 'name', which will be used for the purpose of configfs.
>
> This way we would not have to duplicate the entries anywhere. All the
> other fields you are currently keeping in hid_quirk_types[] could be made
> implicitly default, only 'name' is the one that matters, right?

Your last statement is correct.  The problem is that I don't see how the 
rest of what you describe would work in the current arrangement.  Maybe 
you could send an example of how your idea would work in terms of 
configfs.

Right now, there's only one configfs attribute (= filename) per quirk type 
- 23 of these.  Even if multiple dynamic device quirks are added, no new 
configfs attributes are created for each file; the old ones are simply 
reused.  The patch's current configfs directory structure is:

  /usbhid/quirks_runtime/<vendor_id>:<product_id>/<quirk type name>

...

Now, another implementation approach would be to get rid of the quirk type 
names entirely, to use a path such as:

  /usbhid/quirks_runtime/<vendor_id>:<product_id>

with the last component being a r/w configfs attribute containing the 
quirks value.  Is that what you are proposing?  I considered it when I did 
the initial implementation.  The problem with it is that there seems to be 
no way for userspace to create new configfs files/attributes -- only 
configfs directories.


- Paul

  reply	other threads:[~2007-04-12 16:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11  6:49 [PATCH 0/7] usbhid: quirks cleanup, add dynamic quirks, ConfigFS interface Paul Walmsley
2007-04-11 12:49 ` Jiri Kosina
2007-04-11 14:37   ` Jiri Kosina
2007-04-11 18:43     ` Paul Walmsley
2007-04-12 15:39       ` Jiri Kosina
2007-04-12 16:14         ` Paul Walmsley [this message]
2007-04-12 16:51           ` Jiri Kosina
2007-04-12 20:27             ` Paul Walmsley
2007-04-11 18:30   ` Paul Walmsley

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=Pine.LNX.4.64.0704120945571.9207@utopia.booyaka.com \
    --to=paul@booyaka.com \
    --cc=jikos@jikos.cz \
    --cc=jkosina@suse.cz \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    /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).