linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: hotplug, usbmouse and hid modules with an USB mouse
Date: Thu, 20 May 2004 17:57:36 +0000	[thread overview]
Message-ID: <20040520175736.GA25175@kroah.com> (raw)

On Tue, Apr 20, 2004 at 03:14:16AM +0200, Aurelien Jarno wrote:
> [Please CC me for the answers as I am not subscribed to the list. 
> Thanks!]
> 
> 
> Hi all!
> 
> Somebody reported me a problem about hotplug when used with an USB 
> mouse. An USB mouse is supported by the kernel by two different modules,
> usbmouse or hid. The usbmouse module is a very simplified one which 
> don't have all the functionalities of the hid module. However it is 
> smaller and may be the only solution for some mouses.
> 
> hotplug uses usbmodules to know the modules to load for a specific 
> device. For such a mouse, it returns both usbmouse and hid, which is
> true as both of them support the device. However, the order of the two
> modules depends on the devices and more precisely on its descriptors.
> 
> With some devices the usbmouse is loaded before the hid one, resulting
> in some functions not available. I don't thing the problem comes from 
> usbmodules, as its purpose is to list all the modules supported by a 
> device, not to choose the best one! I think it is the job of hotplug.
> 
> I have attached a patch to the current version (2004_03_29), to make
> hotplug load the hid module instead of the usbmouse module if the 
> device supports both. BTW, it also do the same for the usbkbd module.
> 
> Could you please give me some comments about that, and if you think it
> is the right solution to fix the problem?

You should never build the usbmouse or usbkbd driver unless you _really_
know what you are doing (see the help entries for those modules.)  So in
real life your system should never have both modules on them at the same
time, so your patch really isn't needed.

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_idÅ66&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2004-05-20 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-20 17:57 Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-04-20  1:14 hotplug, usbmouse and hid modules with an USB mouse Aurelien Jarno

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=20040520175736.GA25175@kroah.com \
    --to=greg@kroah.com \
    --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).