Re: Can't find HC device for a specific USB bus in sysfs (regression)

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

 



On Thu, Aug 20, 2009 at 03:04:00PM +0100, David Vrabel wrote:
> Using sysfs, it is no longer possible to obtain the host controller
> device for a specific USB bus B (i.e.,
> /sys/class/usb_host/usb_hostB/device).   This change to the sysfs API
> has broken user space applications used to authenticate WUSB devices.

Ick.  I posted here notices that this was going away and no one
responded that they needed them :(

> These programs (which use libusb 1.0) need to obtain the CHID of the
> host controller that the WUSB device is connected to.

libusb has nothing to do with this.

> Can these sysfs files be reinstated?  Alternatively (but not preferred)
> a symlink from the root hub device to the hcd device could be added.

Can't you just walk up the device tree a bit to get to the host
controller device?  libudev will allow you to do this quite easily.

thanks,

greg k-h
--
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