linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Input layer demand loading
@ 2003-07-16 18:19 Andrey Borzenkov
  2003-07-16 18:29 ` Oliver Neukum
  2003-07-16 18:33 ` Mike Fedyk
  0 siblings, 2 replies; 4+ messages in thread
From: Andrey Borzenkov @ 2003-07-16 18:19 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-kernel

>> True, but then if you try to open the port, you will only get the base
>> joydev.o module loaded, not the gameport driver, which is what you
>> _really_ want to have loaded, right?
>> 
>> So there really isn't much benifit to doing this, sorry.
>
> Why? It could work the way PCMCIA SCSI works.
> Cardmgr loads the LLDD, but sd, sg, etc. are loaded
> on demand.

how? SCSI (or USB, PCI, EISA etc) have driver-independent means to identify 
device or at least device class.

But how are you going you going to know you need to load specific mouse driver 
(logitech not microsoft) or specific joystick flavour? All that you possibly 
know that you have _some_ mouse or _some_ joystick ...

-andrey

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

* Re: Input layer demand loading
  2003-07-16 18:19 Input layer demand loading Andrey Borzenkov
@ 2003-07-16 18:29 ` Oliver Neukum
  2003-07-16 18:33 ` Mike Fedyk
  1 sibling, 0 replies; 4+ messages in thread
From: Oliver Neukum @ 2003-07-16 18:29 UTC (permalink / raw)
  To: Andrey Borzenkov; +Cc: linux-kernel

Am Mittwoch, 16. Juli 2003 20:19 schrieb Andrey Borzenkov:
> >> True, but then if you try to open the port, you will only get the base
> >> joydev.o module loaded, not the gameport driver, which is what you
> >> _really_ want to have loaded, right?
> >> 
> >> So there really isn't much benifit to doing this, sorry.
> >
> > Why? It could work the way PCMCIA SCSI works.
> > Cardmgr loads the LLDD, but sd, sg, etc. are loaded
> > on demand.
> 
> how? SCSI (or USB, PCI, EISA etc) have driver-independent means to identify 
> device or at least device class.
> 
> But how are you going you going to know you need to load specific mouse driver 
> (logitech not microsoft) or specific joystick flavour? All that you possibly 
> know that you have _some_ mouse or _some_ joystick ...

Exactly, you'd only load the hardware independent part on demand.
Or, alternatively, you'd record the driver to load in the hotplug script
and load it on demand.

	Regards
		Oliver


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

* Re: Input layer demand loading
  2003-07-16 18:19 Input layer demand loading Andrey Borzenkov
  2003-07-16 18:29 ` Oliver Neukum
@ 2003-07-16 18:33 ` Mike Fedyk
       [not found]   ` <E19d16P-00044X-00.arvidjaar-mail-ru@f19.mail.ru>
  1 sibling, 1 reply; 4+ messages in thread
From: Mike Fedyk @ 2003-07-16 18:33 UTC (permalink / raw)
  To: Andrey Borzenkov; +Cc: Oliver Neukum, linux-kernel

On Wed, Jul 16, 2003 at 10:19:17PM +0400, Andrey Borzenkov wrote:
> >> True, but then if you try to open the port, you will only get the base
> >> joydev.o module loaded, not the gameport driver, which is what you
> >> _really_ want to have loaded, right?
> >> 
> >> So there really isn't much benifit to doing this, sorry.
> >
> > Why? It could work the way PCMCIA SCSI works.
> > Cardmgr loads the LLDD, but sd, sg, etc. are loaded
> > on demand.
> 
> how? SCSI (or USB, PCI, EISA etc) have driver-independent means to identify 
> device or at least device class.
> 
> But how are you going you going to know you need to load specific mouse driver 
> (logitech not microsoft) or specific joystick flavour? All that you possibly 
> know that you have _some_ mouse or _some_ joystick ...

Isn't that why we have hotplug in userspace?

That way, we know we have a mouse, but it's up to userspace to find out
what kind.

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

* Re: Re[2]: Input layer demand loading
       [not found]   ` <E19d16P-00044X-00.arvidjaar-mail-ru@f19.mail.ru>
@ 2003-07-17 18:38     ` Mike Fedyk
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Fedyk @ 2003-07-17 18:38 UTC (permalink / raw)
  To: Andrey Borzenkov; +Cc: Oliver Neukum, linux-kernel

On Thu, Jul 17, 2003 at 09:14:49AM +0400, "Andrey Borzenkov"  wrote:
> 
> 
> -----Original Message-----
> 
> > 
> > On Wed, Jul 16, 2003 at 10:19:17PM +0400, Andrey Borzenkov wrote:
> > > >> True, but then if you try to open the port, you will only get the base
> > > >> joydev.o module loaded, not the gameport driver, which is what you
> > > >> _really_ want to have loaded, right?
> > > >> 
> > > >> So there really isn't much benifit to doing this, sorry.
> > > >
> > > > Why? It could work the way PCMCIA SCSI works.
> > > > Cardmgr loads the LLDD, but sd, sg, etc. are loaded
> > > > on demand.
> > > 
> > > how? SCSI (or USB, PCI, EISA etc) have driver-independent means to identify 
> > > device or at least device class.
> > > 
> > > But how are you going you going to know you need to load specific mouse driver 
> > > (logitech not microsoft) or specific joystick flavour? All that you possibly 
> > > know that you have _some_ mouse or _some_ joystick ...
> > 
> > Isn't that why we have hotplug in userspace?
> > 
> > That way, we know we have a mouse, but it's up to userspace to find out
> > what kind.
> > 
> 
> that is not what hotplug is for. What you describe is called "probing". 
> 
> Hotplug is there to load hardware driver once hardware is known, not
> to probe what hardware is there.
> 
> It can be used this way but it is rather abuse (or misuse) I'd say.

In many cases, you only know you have a class of devices, and you need more
probing after the initial hardware notification (hotplug).

There are many people that want all probing to be in user space.  Let's face
it, it's easier (no need to reboot) to upgrade a userspace probing app than
to install a new kernel.

Unfortunatly, it doesn't look like that will happen for 2.6, but I'd bet it
will in 2.7, and hotplug will probably be a considerable player in that area
(unless something better is used instead).

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

end of thread, other threads:[~2003-07-17 18:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-16 18:19 Input layer demand loading Andrey Borzenkov
2003-07-16 18:29 ` Oliver Neukum
2003-07-16 18:33 ` Mike Fedyk
     [not found]   ` <E19d16P-00044X-00.arvidjaar-mail-ru@f19.mail.ru>
2003-07-17 18:38     ` Re[2]: " Mike Fedyk

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).