yangsong8-a1 opened a new pull request, #17469:
URL: https://github.com/apache/nuttx/pull/17469

   ## Summary
   
   1. use host_uninterruptible to protect some functions called.
   2. Supports launching multiple sim:usbdev
   3. usbdev process all pending data at once
   
   ## Impact
   
   If multiple data packets have been received before the next polling, then 
all the data can be processed in this next polling session.
   Supports booting multiple sim USB devices on the same PC.
   
   ## Testing
   
   modify linux driver dummy_hcd/dummy_hcd.c used to register multiple hcd.
   ```
   --- a/dummy_hcd/dummy_hcd.c
   +++ b/dummy_hcd/dummy_hcd.c
   @@ -68,7 +68,7 @@ struct dummy_hcd_module_parameters {
    static struct dummy_hcd_module_parameters mod_data = {
           .is_super_speed = false,
           .is_high_speed = true,
   -       .num = 1,
   +       .num = 4,
    };
   ```
   after insmod in linux, we can see
   ```
   $ ls /sys/bus/platform/devices/ | grep dummy
   dummy_hcd.0
   dummy_hcd.1
   dummy_hcd.2
   dummy_hcd.3
   dummy_udc.0
   dummy_udc.1
   dummy_udc.2
   dummy_udc.3
   ```
   then we can start multiple sim:usbdev in different terminal.
   on Sim NuttX and Sim Vela, alidated adb, cdcacm  and so on
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to