linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: file2alias - incorrect? aliases for USB
@ 2003-11-17  6:24 "Andrey Borzenkov" 
  0 siblings, 0 replies; 7+ messages in thread
From: "Andrey Borzenkov"  @ 2003-11-17  6:24 UTC (permalink / raw)
  To: linux-hotplug


> 
> Thanks to Andrey for the fix.  Greg, did you want to add something
> else?  Either way, please forward to Linus.
> 

thank you.

> Andrey: the reason everything is in there is I didn't know what Greg
> wanted.  He OK'd it, but I'm happy for them to be trimmed, too.
> 

May I ask reponsible persons - Greg, Rusty - make some decision?
As I have been hammered by Rusty to use modules.alias I am going
to send functions for other subsystems as well - at least USB.
Ironically for all others it makes code much smaller (and possibly
a bit faster). For input it does not bring much :(

regards

-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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* file2alias - incorrect? aliases for USB
@ 2003-11-09 18:55 Andrey Borzenkov
  2003-11-10  9:37 ` Greg KH
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Andrey Borzenkov @ 2003-11-09 18:55 UTC (permalink / raw)
  To: linux-hotplug

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

unfortunately real device attribute does not include high and low - rather it 
has single device ID (as part of PRODUCT) that should be contained in these 
bounds:

        length += snprintf (scratch, buffer_size - length, "PRODUCT=%x/%x/%x",
                            usb_dev->descriptor.idVendor,
                            usb_dev->descriptor.idProduct,
                            usb_dev->descriptor.bcdDevice);

or bcdDevice file in sysfs.

This makes those aliases rather useless for the purpose of matching reported 
device. It may take the same route as PCI and reject all device ID table 
entries that have High != Low but there are quite a few of them available.

I am rather confused because I do not see how this condition (low <= bcdDevice 
<= high) can be expressed using simple glob pattern (unless we are going to 
take glob library from Zsh :)

thank you

-andrey




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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

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

end of thread, other threads:[~2003-12-11  9:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-17  6:24 file2alias - incorrect? aliases for USB "Andrey Borzenkov" 
  -- strict thread matches above, loose matches on Subject: below --
2003-11-09 18:55 Andrey Borzenkov
2003-11-10  9:37 ` Greg KH
2003-11-14  1:02 ` Greg KH
2003-11-17  3:09 ` Rusty Russell
2003-11-17 18:11 ` Andrey Borzenkov
2003-12-11  9:29 ` Greg KH

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