linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] pnp rc
@ 2004-10-08 13:27 matthieu castet
  2004-10-08 22:10 ` Greg KH
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: matthieu castet @ 2004-10-08 13:27 UTC (permalink / raw)
  To: linux-hotplug

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

Hi,
this patch clean the /etc/hotplug/isapnp.rc.
It is based against debian hotplug version.

I saw that you add recently in your cvs a pnp.rc.

You will see that your version also try to load anolog for PNPB02F 
instead of the gameport driver ns558. And it is not right because anolog 
is a joystick driver not the generic gameport driver we want.




pnp.rc it is near 4 time longer than the debian version :
$ time /etc/hotplug/isapnp.rc start
      floppy: loaded sucessfully
      8250_pnp: loaded sucessfully
      8250_pnp: loaded sucessfully
      parport_pc: loaded sucessfully
      ns558: loaded sucessfully
      snd-mpu401-pnp: loaded sucessfully
      rtc: loaded sucessfully

real    0m0.254s
user    0m0.103s
sys     0m0.109s

time  ./pnp.rc start
      floppy: already loaded
      8250_pnp: already loaded
      8250_pnp: already loaded
      parport_pc: already loaded
      ns558: already loaded
      analog: can't be loaded
missing kernel or user mode driver analog
      snd-mpu401-pnp: already loaded
      rtc: already loaded
      pcspkr: loaded successfully
      psmouse: loaded successfully
      atkbd: loaded successfully

real    0m0.908s
user    0m0.430s
sys     0m0.376s

Also ./pnp.rc list even modules that are compile with the kernel : here 
pcspkr, psmouse, atkdb...

Matthieu

[-- Attachment #2: hotplug-pnp.patch --]
[-- Type: text/x-patch, Size: 1084 bytes --]

--- /etc/hotplug/isapnp.rc	2004-09-03 20:15:37.000000000 +0200
+++ /etc/hotplug/isapnp.rc	2004-10-03 14:04:44.000000000 +0200
@@ -26,7 +26,6 @@
     fi
 
     cat /sys/bus/pnp/devices/*/id \
-    | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
     | while read MODULE; do
 	# get the name of the module which should be loaded
 	MODULE=$(modprobe --show-depends -q pnp:d$MODULE | sed -e '$!d;s/.*\/\(.*\)\.ko .*/\1/')
--- /tmp/ttt/etc/modprobe.d/isapnp/isapnp.aliases	2004-09-03 20:15:37.000000000 +0200
+++ /etc/modprobe.d/isapnp/isapnp.aliases	2004-10-08 15:14:33.000000000 +0200
@@ -1,12 +1,9 @@
 # These aliases are used by /etc/hotplug/isapnp.rc and are needed here
 # because the modules themselves are not providing them.
-alias pnp:dPNP0400 parport_pc
-alias pnp:dPNP0401 parport_pc
 alias pnp:dPNP0510 irtty-sir
 alias pnp:dPNP0511 irtty-sir
 alias pnp:dPNP0700 floppy
 alias pnp:dPNP0800 pcspkr
-alias pnp:dPNP0B00 rtc
+alias pnp:dPNP0b00 rtc
 alias pnp:dPNP0303 atkbd
-alias pnp:dPNP0F13 psmouse
-alias pnp:dPNPB02F analog
+alias pnp:dPNP0f13 psmouse

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

end of thread, other threads:[~2004-10-10 20:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-08 13:27 [patch] pnp rc matthieu castet
2004-10-08 22:10 ` Greg KH
2004-10-09  5:36 ` Alexander E. Patrakov
2004-10-09  8:51 ` Alexander E. Patrakov
2004-10-10 20:38 ` matthieu castet

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