mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: "Jiri Kosina" <jkosina@suse.cz>
Cc: "Li Yu" <raise.sail@gmail.com>,
	"Greg Kroah Hartman" <greg@kroah.com>,
	linux-usb-devel <linux-usb-devel@lists.sourceforge.net>,
	LKML <linux-kernel@vger.kernel.org>,
	"Vincent Legoll" <vincentlegoll@gmail.com>,
	"Zephaniah E. Hull" <warp@aehallh.com>, liyu <liyu@ccoss.com.cn>,
	"Marcel Holtmann" <marcel@holtmann.org>
Subject: Re: [PATCH] usb/hid: The HID Simple Driver Interface 0.4.1 (core)
Date: Wed, 6 Dec 2006 09:24:02 -0500	[thread overview]
Message-ID: <d120d5000612060624o15f608dk83f35a228b9a6d18@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0612061114560.28502@twin.jikos.cz>

Hi,

On 12/6/06, Jiri Kosina <jkosina@suse.cz> wrote:
> On Wed, 6 Dec 2006, Li Yu wrote:
>
> >       1. Make hidinput_disconnect_core() be more robust, it can not
> >          break anything even failed to allocate device struct.
> >       2. Thanks new input device driver API, we need not the extra code
> >          for support force-feed device yet, so say bye to
> >          CONFIG_HID_SIMPLE_FF.
> > Is this ready to merge? or What still is problem in them? Thanks.
>
> Hi,
>
> actually, I have prepared patches to split the USBHID code in two parts -
> generic HID, which could be hooked by transport-specific HID layers (USB,
> Bluetooth).
>
> I did not send them to lkml/linux-usb, as they are quite big (mainly
> because a lot of code is being moved around). I am currently trying to
> setup a git repository on kernel.org, hopefully kernel.org people will
> react, so that the patches could be easily put into git repository and be
> available for rewiew and easy merge. After that, they are planned to be
> merged either into Greg's or Andrew's tree. I can send them to you if you
> want.
>
> Do you think that you could wait a little bit more, after the split has
> been done? (it's currently planned approximately after 2.6.20-rc1). It
> seems to me that your patches will apply almost cleanly on top of the
> split patches (you will have to change the pathnames, of course).
>

I still have the same objection - the "simple'" code will have to be
compiled into the driver instead of being a separate module and
eventyally will lead to a monster-size HID module. We have this issue
with psmouse to a degree but with HID the growth potential is much
bigger IMO.

Jiri, I have not looked at your patches yet (I need to do that) but
what I was hoping to do (or have someone to do ;) ) is to provide
ability to define HID transport drivers (we would have USB transport
and bluetooth transport) and then say:

  device = hid_create_device(&my_transport);
  device->event = my_event_handler;
  ....
  hid_start_device(device);

hid-create_device would parse all reports and create "standard" hid
device. Then you have a chance to override and tweak it as you see
fit.

This way we could have several small drivers implementing quirks to
the generic HID driver. Most of the code is still in hid core module
but every individual driver is complete USB (or bluetooth) driver, has
its own device table and is loaded via standard driver code bust
matching/hotplug modalias mechanism.

Btw, I saw you moving it into drivers/hid, would not
drivers/input/hid/ suit better?

-- 
Dmitry

  reply	other threads:[~2006-12-06 14:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-06 10:03 Li Yu
2006-12-06 10:24 ` Jiri Kosina
2006-12-06 14:24   ` Dmitry Torokhov [this message]
2006-12-06 14:38     ` Marcel Holtmann
2006-12-06 14:56       ` Dmitry Torokhov
2006-12-06 15:07         ` Marcel Holtmann
2006-12-06 15:00       ` Jiri Kosina
2006-12-06 15:13         ` Dmitry Torokhov
2006-12-06 15:18           ` Marcel Holtmann
2006-12-07  5:16             ` Greg KH
2006-12-06 15:18           ` Jiri Kosina
2006-12-06 15:25             ` Marcel Holtmann
2006-12-06 15:31             ` Dmitry Torokhov
2006-12-06 15:39               ` Jiri Kosina
2006-12-07  5:25   ` Liyu

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=d120d5000612060624o15f608dk83f35a228b9a6d18@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=greg@kroah.com \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=liyu@ccoss.com.cn \
    --cc=marcel@holtmann.org \
    --cc=raise.sail@gmail.com \
    --cc=vincentlegoll@gmail.com \
    --cc=warp@aehallh.com \
    /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

all inboxes | Powered by JetHome®