From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Mon, 17 Nov 2003 18:11:28 +0000 Subject: Re: file2alias - incorrect? aliases for USB Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Monday 10 November 2003 12:37, Greg KH wrote: > On Sun, Nov 09, 2003 at 09:55:19PM +0300, Andrey Borzenkov wrote: > > file2aliases puts in alias device ID high and low numbers directly from > > match specifications. E.g. for this match table entry: > > > > usb-storage 0x000f 0x04e6 0x0006 0x0100 0x0205 > > ... > > > > it generates alias > > > > alias usb:v04E6p0006dl0100dh0205dc*dsc*dp*ic*isc*ip* usb_storage > > [...] > > I would suggest just ignoring the bcdDevice value, and loading all > modules that match the idVendor and idProduct values, and let the kernel > sort it out :) > the obvious point that this leaves unneeded modules in kernel aside ... that won't work that easy. You have to build name to match line from modules.alias. But to match you have to put exact values for `dl' and `dh'. Those values are simply not available when hotplug agent is called. i.e. for the above line to match you have to supply exact values for vendor, product, device low, device high. Any other values are not important but these must be exact. But neither device low nor device high are known. apparently the only way is to remove them and hope that usually the same vendor/product combination is handled by single driver. > So for your example, you would just: > modprobe usb:v04E6p0006dl*dh*dc*dsc*dp*ic*isc*ip* > that won't match, sorry. wildcards can be in aliases; they can't be in module names. -andrey ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel