Public bug reported:

A USB device can offering a number of possible Configurations, with the
host/operating system selecting the most suitable configuration for its
needs.  An example could be a media device offering either proprietary,
or Mass Storage configurations.

Changing the selected configuration can be done by either:

  echo 3 >
/sys/devices/pci0000:00/0000:00:1d.7/usb7/7-3/bConfigurationValue

or, using libusb:

  usb_set_configuration(iphone->device, 3);

Currently using one of these methods means that the kernel sysfs state
gets out-of-sync; meaning that udev events are incorrect and the
available '/dev/usbdev7.3_ep??' endpoint symlinks are incorrect as no
udev events are issued.

Ideally 'libusb' should use sysfs on Linux to make the configuration
change, or the kernel should make note of the raw USB commands that it
passes through and update its state.

** Affects: libusb (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

-- 
sync libusb usb_set_configuration() + sysfs .../bConfigurationValue
https://bugs.launchpad.net/bugs/347405
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to