On Sat, 17 Jan 2009, Carsten Meier wrote: > > Hi, > > I'm now diving into sysfs and found the info you mentioned in > "/sys/bus/usb/devices/7-2/" for a bus_info-string of "usb 7-2 address 6" > The "address 6" part is found in "/sys/bus/usb/devices/7-2/devnum" and > is the part which causes the trouble with my simple bus_info-approach > because it always changes. Some questions about now two possible > approaches:: > > Approach #1: Direct mapping of card and bus_info to config data (my > original idea): > > - To make the simple bus_info approach work, just the address 6 has to > be removed from the bus_info-string. Is it neccessary to identify the > device in sysfs? (should it really be there?) > > Approach #2: Use bus_info-string to locate device-information in sysfs > and read infos like serial from there: > > - How does the canonical usb-bus_info-string look like which has > been suggested by Mauro on the linux-media-list? > - How to make my app work with PCI-devices? (because I have to look > in "/sys/bus/usb/" for USB-devices) How to distingish USB- and > PCI-devices from v4l2? > > Of course, both approaches could be combined if bus_info would return > something like "USB-7-2" which doesn't change and is suitable for > finding the serial via sysfs. > > Sorry for all those questions. I know you are a > driver-developer, not my personal teacher, but you know about the > problem I have ;) I already read the sysfs-reference at > http://www.kernel.org/pub/linux/kernel/people/mochel/doc/papers/ols-2005/ > but it doesn't contain much information for my case.
I need to investigate how I'm currently generating that bus_info string. That was code I put into place quite a while ago. Mauro has suggested how to do it and I'm going to see if I'm doing that yet. However I have some other issues I have to deal with first. I'll let you know. -Mike -- Mike Isely isely @ pobox (dot) com PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8 _______________________________________________ pvrusb2 mailing list [email protected] http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
