linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Another UDEV question.
@ 2004-03-03 23:28 reg
  2004-03-03 23:43 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: reg @ 2004-03-03 23:28 UTC (permalink / raw)
  To: linux-hotplug

Ive been trying to get several devices working (again) with
udev.  Greg pointed me in the right direction on the first,
and I was able to get the second working,- but there is something
here that I dont understand.

On the first, a usb key, the udevinfo showed the device twice,
once as a scsi device, once as a usb.  Trying to specify the device
with the 'model' string and the scsi info didnt work, with the 
'model' and the 'usb' did.  I have no idea WHY the one worked and
not the other.

On the second, a 2-1/2" drive in a small usb 'box' the udevinfo
shows the device again twice, once as

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-1
/3-1:2.0/host3/3:0:0:0':
    BUS="scsi"
    ID="3:0:0:0"
    SYSFS{detach_state}="0"
    SYSFS{type}="0"
    SYSFS{max_sectors}="240"
    SYSFS{device_blocked}="0"
    SYSFS{queue_depth}="1"
    SYSFS{scsi_level}="3"
    SYSFS{vendor}="IC25N020"
    SYSFS{model}="ATCS04-0        "
    SYSFS{rev}="CA2O"
    SYSFS{online}="1"

and then again as

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-1
':
    BUS="usb"
    ID="3-1"
    SYSFS{detach_state}="0"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bConfigurationValue}="2"
    SYSFS{bmAttributes}="c0"
    SYSFS{bMaxPower}=" 98mA"
    SYSFS{idVendor}="0c0b"
    SYSFS{idProduct}="b001"
    SYSFS{bcdDevice}="1110"
    SYSFS{bDeviceClass}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bNumConfigurations}="1"
    SYSFS{speed}="12"
    SYSFS{manufacturer}="DMI"
    SYSFS{product}="USB 2.0 Storage Adaptor"
    SYSFS{serial}="0B0201420527B284"

and using the vendor or product fields I can get udev to see EITHER
of these.

Is this just hit or miss?
Is there someone behind the curtain that Im not seeing?
Just trying to understand whats going on.

-- 
                                        Reg.Clemens
                                        reg@dwf.com







-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2004-03-03 23:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-03 23:28 Another UDEV question reg
2004-03-03 23:43 ` 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).