linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: matthieu castet <castet.matthieu@free.fr>
To: linux-hotplug@vger.kernel.org
Subject: [patch] pnp rc
Date: Fri, 08 Oct 2004 13:27:46 +0000	[thread overview]
Message-ID: <416695D2.2050405@free.fr> (raw)

[-- 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

             reply	other threads:[~2004-10-08 13:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-08 13:27 matthieu castet [this message]
2004-10-08 22:10 ` [patch] pnp rc 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

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=416695D2.2050405@free.fr \
    --to=castet.matthieu@free.fr \
    --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).