All of lore.kernel.org
 help / color / mirror / Atom feed
* USB device enumeration query
       [not found] <321889095.1287351.1639978639867.ref@mail.yahoo.com>
@ 2021-12-20  5:37 ` mahesh mv
  2021-12-28  8:52   ` Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: mahesh mv @ 2021-12-20  5:37 UTC (permalink / raw)
  To: u-boot

Hi all,
We have  a board where we plan to connect 2 USB devices of MASS storage class. One of the devices (3) is plugged in all the timebut the other USB is hotplugged when ever its required. The issue we are facing is the device number is not deterministic acrossreboots with uboot 2021 . Is there a way to fix the Device 3 below as the first one all the time in DTS file or some other mechanism in uboot.
Emerald:> versionU-Boot 2021.07--11625-ge998855ac2-dirty (Dec 07 2021 - 23:22:27 +0530)
aarch64-broadcom-linux-gnu-gcc.br_real (Buildroot 2019.08) 8.3.0GNU ld (GNU Binutils) 2.31.1

 Emerald:> usb info     1: Hub,  USB Revision 3.0     - U-Boot XHCI Host Controller     - Class: Hub     - PacketSize: 512  Configurations: 1     - Vendor: 0x0000  Product 0x0000 Version 1.0        Configuration: 1        - Interfaces: 1 Self Powered 0mA          Interface: 0          - Alternate Setting 0, Endpoints: 1          - Class Hub          - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms         2: Hub,  USB Revision 2.0     -  USB2.0 Hub     - Class: Hub     - PacketSize: 64  Configurations: 1     - Vendor: 0x05e3  Product 0x0608 Version 96.112        Configuration: 1        - Interfaces: 1 Self Powered Remote Wakeup 100mA          Interface: 0          - Alternate Setting 0, Endpoints: 1          - Class Hub          - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms         3: Mass Storage,  USB Revision 2.10     - SanDisk Ultra 040122c9e4a887e576fc7d3a05f5898     - Class: (from Interface) Mass Storage     - PacketSize: 64  Configurations: 1     - Vendor: 0x0781  Product 0x5581 Version 1.0        Configuration: 1        - Interfaces: 1 Bus Powered 224mA          Interface: 0          - Alternate Setting 0, Endpoints: 2          - Class Mass Storage, Transp. SCSI, Bulk only          - Endpoint 1 In Bulk MaxPacket 512          - Endpoint 2 Out Bulk MaxPacket 512         4: Mass Storage,  USB Revision 2.0     - Virtium VTDU31XC008G-A901 P1T65005607903260051     - Class: (from Interface) Mass Storage     - PacketSize: 64  Configurations: 1     - Vendor: 0x2aaa  Product 0x0100 Version 1.0        Configuration: 1        - Interfaces: 1 Bus Powered 100mA          Interface: 0          - Alternate Setting 0, Endpoints: 2          - Class Mass Storage, Transp. SCSI, Bulk only          - Endpoint 1 In Bulk MaxPacket 512          - Endpoint 1 Out Bulk MaxPacket 512

Thanks,Mahesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: USB device enumeration query
  2021-12-20  5:37 ` USB device enumeration query mahesh mv
@ 2021-12-28  8:52   ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2021-12-28  8:52 UTC (permalink / raw)
  To: mahesh mv; +Cc: u-boot

Hi Mahesh,

On Mon, 20 Dec 2021 at 05:55, mahesh mv <maheshm_v@yahoo.com> wrote:
>
> Hi all,
> We have  a board where we plan to connect 2 USB devices of MASS storage class. One of the devices (3) is plugged in all the timebut the other USB is hotplugged when ever its required. The issue we are facing is the device number is not deterministic acrossreboots with uboot 2021 . Is there a way to fix the Device 3 below as the first one all the time in DTS file or some other mechanism in uboot.
> Emerald:> versionU-Boot 2021.07--11625-ge998855ac2-dirty (Dec 07 2021 - 23:22:27 +0530)
> aarch64-broadcom-linux-gnu-gcc.br_real (Buildroot 2019.08) 8.3.0GNU ld (GNU Binutils) 2.31.1
>
>  Emerald:> usb info     1: Hub,  USB Revision 3.0     - U-Boot XHCI Host Controller     - Class: Hub     - PacketSize: 512  Configurations: 1     - Vendor: 0x0000  Product 0x0000 Version 1.0        Configuration: 1        - Interfaces: 1 Self Powered 0mA          Interface: 0          - Alternate Setting 0, Endpoints: 1          - Class Hub          - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms         2: Hub,  USB Revision 2.0     -  USB2.0 Hub     - Class: Hub     - PacketSize: 64  Configurations: 1     - Vendor: 0x05e3  Product 0x0608 Version 96.112        Configuration: 1        - Interfaces: 1 Self Powered Remote Wakeup 100mA          Interface: 0          - Alternate Setting 0, Endpoints: 1          - Class Hub          - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms         3: Mass Storage,  USB Revision 2.10     - SanDisk Ultra 040122c9e4a887e576fc7d3a05f5898     - Class: (from Interface) Mass Storage     - PacketSize: 64  Configurations: 1     - Vendor: 0x0781  Product 0x5581 Version 1.0        Configuration: 1        - Interfaces: 1 Bus Powered 224mA          Interface: 0          - Alternate Setting 0, Endpoints: 2          - Class Mass Storage, Transp. SCSI, Bulk only          - Endpoint 1 In Bulk MaxPacket 512          - Endpoint 2 Out Bulk MaxPacket 512         4: Mass Storage,  USB Revision 2.0     - Virtium VTDU31XC008G-A901 P1T65005607903260051     - Class: (from Interface) Mass Storage     - PacketSize: 64  Configurations: 1     - Vendor: 0x2aaa  Product 0x0100 Version 1.0        Configuration: 1        - Interfaces: 1 Bus Powered 100mA          Interface: 0          - Alternate Setting 0, Endpoints: 2          - Class Mass Storage, Transp. SCSI, Bulk only          - Endpoint 1 In Bulk MaxPacket 512          - Endpoint 1 Out Bulk MaxPacket 512

The output is a bit garbled.

You can add USB devices to the devicetree if you like. See
usb_scan_device() which calls usb_find_child() to find such a device.

Regards,
Simon

>
> Thanks,Mahesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-28  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <321889095.1287351.1639978639867.ref@mail.yahoo.com>
2021-12-20  5:37 ` USB device enumeration query mahesh mv
2021-12-28  8:52   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.