missing USB device

      missing USB device

      Dear support-team,

      I'm using a special USB device that is providing an interface to a field bus system. The device driver is creating a virtual network interface. In my software I connect to this virtual network and can read/write the field bus. This is working well as long as I do not reboot the armstone (warm boot e.g. by calling reboot in console). After reboot this USB device is not available anymore and cannot be seen when calling lsusb. When I power off/on the armstone everything is working well again. I'm also using other USB devices (e.g. capacitive USB Touch). These other devices are working after warm boot. On other platforms/kernel versions the field bus USB device was working after warm boot also.

      Any idea?
      Thanks.
      I guess this can be solved by the USB power management. Even if I shutdown armstone by using the "halt" command the USB devices will keep powered on.
      I also played around with the

      Source Code

      1. /sys/bus/usb/drivers/usb/usb1/power
      directory but was not able to suspend USB power.
      I also had a look into the device tree:

      Source Code

      1. reg_usb_otg_vbus: usb_otg_vbus {
      2. compatible = "regulator-fixed";
      3. regulator-name = "usb_otg_vbus";
      4. regulator-min-microvolt = <5000000>;
      5. regulator-max-microvolt = <5000000>;
      6. gpio = <&gpio3 22 GPIO_ACTIVE_LOW>;
      7. };
      8. reg_usb_h1_vbus: usb_h1_vbus {
      9. compatible = "regulator-fixed";
      10. regulator-name = "usb_h1_vbus";
      11. regulator-min-microvolt = <5000000>;
      12. regulator-max-microvolt = <5000000>;
      13. /* No way to switch USB1_H1_VBUS power */
      14. // gpio = <&gpio1 29 0>;
      15. // enable-active-high;
      16. };

      Is there any possibility to get control over USB power?