linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Volf <martin@datatrans.cz>
To: linux-hotplug@vger.kernel.org
Subject: Problem with hotplug-2001_01_16 + quick solution
Date: Mon, 22 Jan 2001 05:31:16 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-98014154830651@msgid-missing> (raw)

There is one column missing in usb.distmap. I don't know which one.

My USB mouse (Genius Netmouse Pro) has PRODUCTE8/2/0.0
(DEVICE=/proc/bus/usb/001/002, INTERFACE=3/1/2, TYPE not set)
in kernel 2.2.19pre6, so usb.agent aborts its execution
in usb_convert_vars function. In the kernel 2.4.0 it is OK.
I don't have other USB devices yet.

With modutils 2.4.1 the file /lib/modules/`uname -r`/modules.usbmap
exists even in the 2.2 kernel, but contains only one line, so usb.distmap
is not used.

Here's patch to usb.agent, which worked for me both in 2.2 and 2.4 kernel:

= cut here =
--- usb.agent.original	Wed Jan 17 07:15:02 2001
+++ usb.agent	Sun Jan 21 20:05:00 2001
@@ -103,7 +103,7 @@
     fi
 
     local XPROD
-    XPROD=`echo $PRODUCT | $AWK -F/ '{print "0x" $1, "0x" $2, "0x" $3 }'`
+    XPROD=`echo $PRODUCT | $AWK -F/ '{print "0x" $1, "0x" $2, "0x" $3 }'
| $AWK -F. '{print $1 }'`
     read usb_idVendor usb_idProduct usb_bcdDevice << EOT
 $XPROD
 EOT
@@ -232,11 +232,14 @@
     LABEL="USB product $PRODUCT"
 
     # on 2.4 systems, modutils maintains MAP_CURRENT
-    # ... but on 2.2 systems, it can't; use MAP_DISTRIB
+    # ... but on 2.2 systems, it can't; use MAP_DISTMAP
     if [ -r $MAP_CURRENT ]; then
     	load_drivers usb $MAP_CURRENT "$LABEL"
-    elif [ -r $MAP_DISTRIB ]; then
-    	load_drivers usb $MAP_DISTRIB "$LABEL"
+    fi
+    if [ "$DRIVERS" != "" ]; then
+	FOUND=true
+    elif [ -r $MAP_DISTMAP ]; then
+    	load_drivers usb $MAP_DISTMAP "$LABEL"
     fi
     if [ "$DRIVERS" != "" ]; then
 	FOUND=true
= cut here =

Martin Volf



_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2001-01-22  5:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-22  5:31 Martin Volf [this message]
2001-01-23 16:14 ` Problem with hotplug-2001_01_16 + quick solution David Brownell

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=marc-linux-hotplug-98014154830651@msgid-missing \
    --to=martin@datatrans.cz \
    --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).