Re: [PATCH] USB: usbfs: deprecate and hide option for !embedded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Apr 2009, Greg KH wrote:

> > The host controller device (which is the parent of the root hub device) 
> > is the best choice.
> 
> But isn't that the same thing as the usb_host device is today?  Or am I
> totally confused?

You're partially confused.  :-)

Here's an example.  On my system, there's an EHCI controller at PCI 
address 1d.7:

	/sys/devices/pci0000:00/0000:00:1d.7/

Inside that directory is the root hub:

	/sys/devices/pci0000:00/0000:00:1d.7/usb1/

But also inside it is the class device directory:

	/sys/devices/pci0000:00/0000:00:1d.7/usb_host/usb_host1/

The "companion" attribute is currently there, inside usb_host1.  But it 
could easily be moved up to 0000:00:1d.7.

So IIUC, Kay would like to remove the usb_host and usb_host1 
subdirectories entirely.  The symlinks under /sys/class can remain, but 
their targets would be different.  Right now I've got:

$ ls -l /sys/class/usb_host/usb_host1
lrwxrwxrwx 1 root root 0 2009-04-27 11:54 /sys/class/usb_host/usb_host1 -> ../../devices/pci0000:00/0000:00:1d.7/usb_host/usb_host1/

After this change the target of the symlink would be

	../../devices/pci0000:00/0000:00:1d.7/

Does that clarify the situation?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux