linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Input layer demand loading
@ 2003-07-13 16:39 Fredrik Tolf
  2003-07-14  6:22 ` Greg KH
  0 siblings, 1 reply; 16+ messages in thread
From: Fredrik Tolf @ 2003-07-13 16:39 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 110 bytes --]

Why does the input layer still not have on-demand module loading? How about 
applying this?

Fredrik Tolf

[-- Attachment #2: Patch for 2.5.75 --]
[-- Type: text/x-diff, Size: 725 bytes --]

cd /usr/src/linux-2.5.75/drivers/input/
diff -up /usr/src/linux-2.5.75/drivers/input/input.c\~ /usr/src/linux-2.5.75/drivers/input/input.c
--- /usr/src/linux-2.5.75/drivers/input/input.c~	2003-07-13 18:34:09.000000000 +0200
+++ /usr/src/linux-2.5.75/drivers/input/input.c	2003-07-13 18:34:18.000000000 +0200
@@ -531,7 +531,13 @@ static int input_open_file(struct inode 
 	struct file_operations *old_fops, *new_fops = NULL;
 	int err;
 
-	/* No load-on-demand here? */
+	if(!handler)
+	{
+		char name[20];
+		sprintf(name, "input-dev-%i", minor(inode->i_rdev) >> 5);
+		request_module(name);
+		handler = input_table[minor(inode->i_rdev) >> 5];
+	}
 	if (!handler || !(new_fops = fops_get(handler->fops)))
 		return -ENODEV;

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

* Re: Input layer demand loading
  2003-07-13 16:39 Input layer demand loading Fredrik Tolf
@ 2003-07-14  6:22 ` Greg KH
  2003-07-14 10:58   ` Fredrik Tolf
  0 siblings, 1 reply; 16+ messages in thread
From: Greg KH @ 2003-07-14  6:22 UTC (permalink / raw)
  To: Fredrik Tolf; +Cc: linux-kernel

On Sun, Jul 13, 2003 at 06:39:49PM +0200, Fredrik Tolf wrote:
> Why does the input layer still not have on-demand module loading? How about 
> applying this?

What's wrong with the current hotplug interface for the input layer?  If
you want to implement this, add some input hotplug scripts to the
linux-hotplug package.

thanks,

greg k-h

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

* Re: Input layer demand loading
  2003-07-14  6:22 ` Greg KH
@ 2003-07-14 10:58   ` Fredrik Tolf
  2003-07-16  4:29     ` Greg KH
  0 siblings, 1 reply; 16+ messages in thread
From: Fredrik Tolf @ 2003-07-14 10:58 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

On Monday 14 July 2003 08.22, Greg KH wrote:
> On Sun, Jul 13, 2003 at 06:39:49PM +0200, Fredrik Tolf wrote:
> > Why does the input layer still not have on-demand module loading? How
> > about applying this?
>
> What's wrong with the current hotplug interface for the input layer?  If
> you want to implement this, add some input hotplug scripts to the
> linux-hotplug package.

Correct me if I'm wrong, but AFAIK that can only be smoothly used to load 
hardware driver modules.
If the input layer userspace interface code has been compiled as modules, and 
you have a ordinary (not hotplug) device, eg. a gameport joystick, can really 
the hotplug interface be used to load joydev.o when /dev/input/js0 is opened?
I don't use hotplugging that much, so I can't say that I'm sure about what it 
can do, but in my perception of the hotplug system, it can't be used for 
that.

Fredrik Tolf


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

* Re: Input layer demand loading
  2003-07-14 10:58   ` Fredrik Tolf
@ 2003-07-16  4:29     ` Greg KH
  2003-07-16 12:57       ` Fredrik Tolf
  0 siblings, 1 reply; 16+ messages in thread
From: Greg KH @ 2003-07-16  4:29 UTC (permalink / raw)
  To: Fredrik Tolf; +Cc: linux-kernel

On Mon, Jul 14, 2003 at 12:58:24PM +0200, Fredrik Tolf wrote:
> On Monday 14 July 2003 08.22, Greg KH wrote:
> > On Sun, Jul 13, 2003 at 06:39:49PM +0200, Fredrik Tolf wrote:
> > > Why does the input layer still not have on-demand module loading? How
> > > about applying this?
> >
> > What's wrong with the current hotplug interface for the input layer?  If
> > you want to implement this, add some input hotplug scripts to the
> > linux-hotplug package.
> 
> Correct me if I'm wrong, but AFAIK that can only be smoothly used to load 
> hardware driver modules.

In a way, yes.

> If the input layer userspace interface code has been compiled as modules, and 
> you have a ordinary (not hotplug) device, eg. a gameport joystick, can really 
> the hotplug interface be used to load joydev.o when /dev/input/js0 is opened?
> I don't use hotplugging that much, so I can't say that I'm sure about what it 
> can do, but in my perception of the hotplug system, it can't be used for 
> that.

No, you want to load the joydev.o driver when you plug in the gameport
joystick.  Which will be before you open the /dev node.

So I think it's working the way it is now, correct?

thanks,

greg k-h

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

* Re: Input layer demand loading
  2003-07-16  4:29     ` Greg KH
@ 2003-07-16 12:57       ` Fredrik Tolf
  2003-07-16 16:26         ` Greg KH
  0 siblings, 1 reply; 16+ messages in thread
From: Fredrik Tolf @ 2003-07-16 12:57 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

On Wednesday 16 July 2003 06.29, Greg KH wrote:
> On Mon, Jul 14, 2003 at 12:58:24PM +0200, Fredrik Tolf wrote:
> > On Monday 14 July 2003 08.22, Greg KH wrote:
> > > On Sun, Jul 13, 2003 at 06:39:49PM +0200, Fredrik Tolf wrote:
> > > > Why does the input layer still not have on-demand module loading? How
> > > > about applying this?
> > >
> > > What's wrong with the current hotplug interface for the input layer? 
> > > If you want to implement this, add some input hotplug scripts to the
> > > linux-hotplug package.
> >
> > Correct me if I'm wrong, but AFAIK that can only be smoothly used to load
> > hardware driver modules.
>
> In a way, yes.
>
> > If the input layer userspace interface code has been compiled as modules,
> > and you have a ordinary (not hotplug) device, eg. a gameport joystick,
> > can really the hotplug interface be used to load joydev.o when
> > /dev/input/js0 is opened?
>
> No, you want to load the joydev.o driver when you plug in the gameport
> joystick.  Which will be before you open the /dev node.

Not necessarily. When the joystick is plugged in, you want to load the 
hardware driver modules. There's really no need for the userspace interface 
until someone requests it. At least that's the way I see it.
And in any case, even if you do want to load joydev.o when the joystick is 
plugged in, I don't see how that could be done on-demand when the joystick 
port isn't hotplug compatible, such as is the case with gameports, right?

Fredrik Tolf


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

* Re: Input layer demand loading
  2003-07-16 12:57       ` Fredrik Tolf
@ 2003-07-16 16:26         ` Greg KH
  2003-07-16 16:56           ` Måns Rullgård
                             ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Greg KH @ 2003-07-16 16:26 UTC (permalink / raw)
  To: Fredrik Tolf; +Cc: linux-kernel

On Wed, Jul 16, 2003 at 02:57:42PM +0200, Fredrik Tolf wrote:
> On Wednesday 16 July 2003 06.29, Greg KH wrote:
> > On Mon, Jul 14, 2003 at 12:58:24PM +0200, Fredrik Tolf wrote:
> > > On Monday 14 July 2003 08.22, Greg KH wrote:
> > > > On Sun, Jul 13, 2003 at 06:39:49PM +0200, Fredrik Tolf wrote:
> > > > > Why does the input layer still not have on-demand module loading? How
> > > > > about applying this?
> > > >
> > > > What's wrong with the current hotplug interface for the input layer? 
> > > > If you want to implement this, add some input hotplug scripts to the
> > > > linux-hotplug package.
> > >
> > > Correct me if I'm wrong, but AFAIK that can only be smoothly used to load
> > > hardware driver modules.
> >
> > In a way, yes.
> >
> > > If the input layer userspace interface code has been compiled as modules,
> > > and you have a ordinary (not hotplug) device, eg. a gameport joystick,
> > > can really the hotplug interface be used to load joydev.o when
> > > /dev/input/js0 is opened?
> >
> > No, you want to load the joydev.o driver when you plug in the gameport
> > joystick.  Which will be before you open the /dev node.
> 
> Not necessarily. When the joystick is plugged in, you want to load the 
> hardware driver modules. There's really no need for the userspace interface 
> until someone requests it. At least that's the way I see it.
> And in any case, even if you do want to load joydev.o when the joystick is 
> plugged in, I don't see how that could be done on-demand when the joystick 
> port isn't hotplug compatible, such as is the case with gameports, right?

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.

greg k-h

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

* Re: Input layer demand loading
  2003-07-16 16:26         ` Greg KH
@ 2003-07-16 16:56           ` Måns Rullgård
  2003-07-16 17:28           ` Oliver Neukum
  2003-07-16 21:23           ` Fredrik Tolf
  2 siblings, 0 replies; 16+ messages in thread
From: Måns Rullgård @ 2003-07-16 16:56 UTC (permalink / raw)
  To: linux-kernel

Greg KH <greg@kroah.com> writes:

>> Not necessarily. When the joystick is plugged in, you want to load the 
>> hardware driver modules. There's really no need for the userspace interface 
>> until someone requests it. At least that's the way I see it.
>> And in any case, even if you do want to load joydev.o when the joystick is 
>> plugged in, I don't see how that could be done on-demand when the joystick 
>> port isn't hotplug compatible, such as is the case with gameports, right?
>
> 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.

That's easily fixed in modules.conf, or modprobe.conf for 2.6.

-- 
Måns Rullgård
mru@users.sf.net


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

* Re: Input layer demand loading
  2003-07-16 16:26         ` Greg KH
  2003-07-16 16:56           ` Måns Rullgård
@ 2003-07-16 17:28           ` Oliver Neukum
  2003-07-16 21:23           ` Fredrik Tolf
  2 siblings, 0 replies; 16+ messages in thread
From: Oliver Neukum @ 2003-07-16 17:28 UTC (permalink / raw)
  To: Greg KH, Fredrik Tolf; +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.

	Regards
		Oliver


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

* Re: Input layer demand loading
  2003-07-16 16:26         ` Greg KH
  2003-07-16 16:56           ` Måns Rullgård
  2003-07-16 17:28           ` Oliver Neukum
@ 2003-07-16 21:23           ` Fredrik Tolf
  2003-07-16 21:54             ` Greg KH
  2 siblings, 1 reply; 16+ messages in thread
From: Fredrik Tolf @ 2003-07-16 21:23 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

On Wednesday 16 July 2003 18.26, Greg KH wrote:
> On Wed, Jul 16, 2003 at 02:57:42PM +0200, Fredrik Tolf wrote:
> > On Wednesday 16 July 2003 06.29, Greg KH wrote:
> > > On Mon, Jul 14, 2003 at 12:58:24PM +0200, Fredrik Tolf wrote:
> > > > If the input layer userspace interface code has been compiled as
> > > > modules, and you have a ordinary (not hotplug) device, eg. a gameport
> > > > joystick, can really the hotplug interface be used to load joydev.o
> > > > when /dev/input/js0 is opened?
> > >
> > > No, you want to load the joydev.o driver when you plug in the gameport
> > > joystick.  Which will be before you open the /dev node.
> >
> > Not necessarily. When the joystick is plugged in, you want to load the
> > hardware driver modules. There's really no need for the userspace
> > interface until someone requests it. At least that's the way I see it.
> > And in any case, even if you do want to load joydev.o when the joystick
> > is plugged in, I don't see how that could be done on-demand when the
> > joystick port isn't hotplug compatible, such as is the case with
> > gameports, right?
>
> 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?

Huh? Look at it this way: As it is now, if you have a non-hotplug joystick, 
then you can't load anything automatically, not even the hardware drivers.
If you have demand-loading in the input layer, on the other hand, you can have 
"above" directives in modules.conf (or "install" directives in modprobe.conf) 
to pull in the hardware drivers along with joydev. So not only does 
demand-loading permit hardware drivers and userspace interfaces independently 
of each other, it also provides for loading hardware drivers on demand for 
non-hotplug hardware.

Fredrik Tolf


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

* Re: Input layer demand loading
  2003-07-16 21:23           ` Fredrik Tolf
@ 2003-07-16 21:54             ` Greg KH
  2003-07-16 22:07               ` Oliver Neukum
  2003-07-16 22:21               ` Fredrik Tolf
  0 siblings, 2 replies; 16+ messages in thread
From: Greg KH @ 2003-07-16 21:54 UTC (permalink / raw)
  To: Fredrik Tolf; +Cc: linux-kernel

On Wed, Jul 16, 2003 at 11:23:31PM +0200, Fredrik Tolf wrote:
> On Wednesday 16 July 2003 18.26, Greg KH wrote:
> > On Wed, Jul 16, 2003 at 02:57:42PM +0200, Fredrik Tolf wrote:
> > > On Wednesday 16 July 2003 06.29, Greg KH wrote:
> > > > On Mon, Jul 14, 2003 at 12:58:24PM +0200, Fredrik Tolf wrote:
> > > > > If the input layer userspace interface code has been compiled as
> > > > > modules, and you have a ordinary (not hotplug) device, eg. a gameport
> > > > > joystick, can really the hotplug interface be used to load joydev.o
> > > > > when /dev/input/js0 is opened?
> > > >
> > > > No, you want to load the joydev.o driver when you plug in the gameport
> > > > joystick.  Which will be before you open the /dev node.
> > >
> > > Not necessarily. When the joystick is plugged in, you want to load the
> > > hardware driver modules. There's really no need for the userspace
> > > interface until someone requests it. At least that's the way I see it.
> > > And in any case, even if you do want to load joydev.o when the joystick
> > > is plugged in, I don't see how that could be done on-demand when the
> > > joystick port isn't hotplug compatible, such as is the case with
> > > gameports, right?
> >
> > 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?
> 
> Huh? Look at it this way: As it is now, if you have a non-hotplug joystick, 
> then you can't load anything automatically, not even the hardware drivers.

Correct.

> If you have demand-loading in the input layer, on the other hand, you can have 
> "above" directives in modules.conf (or "install" directives in modprobe.conf) 
> to pull in the hardware drivers along with joydev.

Where do you get the hardware driver coming along with joydev?

I must be missing something here...

> So not only does demand-loading permit hardware drivers and userspace
> interfaces independently of each other, it also provides for loading
> hardware drivers on demand for non-hotplug hardware.

That would be very nice, but I still don't see how your patch enables
this to happen.

thanks,

greg k-h

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

* Re: Input layer demand loading
  2003-07-16 21:54             ` Greg KH
@ 2003-07-16 22:07               ` Oliver Neukum
  2003-07-16 22:16                 ` Greg KH
  2003-07-16 22:21               ` Fredrik Tolf
  1 sibling, 1 reply; 16+ messages in thread
From: Oliver Neukum @ 2003-07-16 22:07 UTC (permalink / raw)
  To: Greg KH, Fredrik Tolf; +Cc: linux-kernel


> > Huh? Look at it this way: As it is now, if you have a non-hotplug joystick, 
> > then you can't load anything automatically, not even the hardware drivers.
> 
> Correct.
> 
> > If you have demand-loading in the input layer, on the other hand, you can have 
> > "above" directives in modules.conf (or "install" directives in modprobe.conf) 
> > to pull in the hardware drivers along with joydev.
> 
> Where do you get the hardware driver coming along with joydev?

By editing /etc/modules.conf
 
> I must be missing something here...

Yes, there are non hotpluggable devices out there.
It is easy to forget :-)
 
	Regards
		Oliver


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

* Re: Input layer demand loading
  2003-07-16 22:07               ` Oliver Neukum
@ 2003-07-16 22:16                 ` Greg KH
  0 siblings, 0 replies; 16+ messages in thread
From: Greg KH @ 2003-07-16 22:16 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: Fredrik Tolf, linux-kernel

On Thu, Jul 17, 2003 at 12:07:04AM +0200, Oliver Neukum wrote:
> 
> > > Huh? Look at it this way: As it is now, if you have a non-hotplug joystick, 
> > > then you can't load anything automatically, not even the hardware drivers.
> > 
> > Correct.
> > 
> > > If you have demand-loading in the input layer, on the other hand, you can have 
> > > "above" directives in modules.conf (or "install" directives in modprobe.conf) 
> > > to pull in the hardware drivers along with joydev.
> > 
> > Where do you get the hardware driver coming along with joydev?
> 
> By editing /etc/modules.conf

Ahh.  Hm, so you have to manually add each hardware driver to the file
to load when you want to open the joystick driver?  How 1990's :)

> > I must be missing something here...
> 
> Yes, there are non hotpluggable devices out there.
> It is easy to forget :-)

Heh, no, I remember.  I just forgot the modutils trick to do this,
sorry.

greg k-h

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

* Re: Input layer demand loading
  2003-07-16 21:54             ` Greg KH
  2003-07-16 22:07               ` Oliver Neukum
@ 2003-07-16 22:21               ` Fredrik Tolf
  1 sibling, 0 replies; 16+ messages in thread
From: Fredrik Tolf @ 2003-07-16 22:21 UTC (permalink / raw)
  To: linux-kernel

On Wednesday 16 July 2003 23.54, you wrote:
> On Wed, Jul 16, 2003 at 11:23:31PM +0200, Fredrik Tolf wrote:
> > On Wednesday 16 July 2003 18.26, Greg KH wrote:
> > > On Wed, Jul 16, 2003 at 02:57:42PM +0200, Fredrik Tolf wrote:
> > > > On Wednesday 16 July 2003 06.29, Greg KH wrote:
> > > > > On Mon, Jul 14, 2003 at 12:58:24PM +0200, Fredrik Tolf wrote:
> > > > > > If the input layer userspace interface code has been compiled as
> > > > > > modules, and you have a ordinary (not hotplug) device, eg. a
> > > > > > gameport joystick, can really the hotplug interface be used to
> > > > > > load joydev.o when /dev/input/js0 is opened?
> > > > >
> > > > > No, you want to load the joydev.o driver when you plug in the
> > > > > gameport joystick.  Which will be before you open the /dev node.
> > > >
> > > > Not necessarily. When the joystick is plugged in, you want to load
> > > > the hardware driver modules. There's really no need for the userspace
> > > > interface until someone requests it. At least that's the way I see
> > > > it. And in any case, even if you do want to load joydev.o when the
> > > > joystick is plugged in, I don't see how that could be done on-demand
> > > > when the joystick port isn't hotplug compatible, such as is the case
> > > > with gameports, right?
> > >
> > > 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?
> >
> > If you have demand-loading in the input layer, on the other hand, you can
> > have "above" directives in modules.conf (or "install" directives in
> > modprobe.conf) to pull in the hardware drivers along with joydev.
>
> Where do you get the hardware driver coming along with joydev?
>
> I must be missing something here...
>
> > So not only does demand-loading permit hardware drivers and userspace
> > interfaces independently of each other, it also provides for loading
> > hardware drivers on demand for non-hotplug hardware.
>
> That would be very nice, but I still don't see how your patch enables
> this to happen.

It could be done by adding this to your modules.conf (or the modprobe.conf 
equivalent if you're using module-init-tools):

alias input-dev-0 joydev
above joydev joy_driver

Admittedly, "above" isn't the preferred way to load modules, but I'd say it's 
far better than nothing. The gameport framework module will be pulled in with 
the joystick driver from the dependency information.

Fredrik Tolf


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

* 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
  1 sibling, 0 replies; 16+ 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] 16+ messages in thread

* 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
  1 sibling, 0 replies; 16+ 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] 16+ messages in thread

* 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; 16+ 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] 16+ messages in thread

end of thread, other threads:[~2003-07-16 22:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-13 16:39 Input layer demand loading Fredrik Tolf
2003-07-14  6:22 ` Greg KH
2003-07-14 10:58   ` Fredrik Tolf
2003-07-16  4:29     ` Greg KH
2003-07-16 12:57       ` Fredrik Tolf
2003-07-16 16:26         ` Greg KH
2003-07-16 16:56           ` Måns Rullgård
2003-07-16 17:28           ` Oliver Neukum
2003-07-16 21:23           ` Fredrik Tolf
2003-07-16 21:54             ` Greg KH
2003-07-16 22:07               ` Oliver Neukum
2003-07-16 22:16                 ` Greg KH
2003-07-16 22:21               ` Fredrik Tolf
2003-07-16 18:19 Andrey Borzenkov
2003-07-16 18:29 ` Oliver Neukum
2003-07-16 18:33 ` 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).