Hi Mahesh,

On Mon, 20 Dec 2021 at 05:55, mahesh mv <mahesh...@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

Reply via email to