You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "zyfeier (via GitHub)" <gi...@apache.org> on 2023/09/05 11:44:42 UTC

[GitHub] [nuttx] zyfeier opened a new pull request, #10485: USB: Add usb fs driver for userspace transfer

zyfeier opened a new pull request, #10485:
URL: https://github.com/apache/nuttx/pull/10485

   ## Summary
   
   Add usb_fs driver so that userspace can directly transfer USB packets through the EP node.
   ADB, Fastboot, MTP will use usb_fs, these class driver only need to provide the descriptor information and register the usb_fs device.
   
   ## Impact
   
   microADB device change from /dev/adb0 to /dev/adb0/ep0 and dev/adb0/ep1
   
   ## Testing
   
   sim:usbdev and bes board usb adb


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 merged pull request #10485: USB: Add usb fs driver for userspace transfer

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #10485:
URL: https://github.com/apache/nuttx/pull/10485


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #10485: USB: Add usb fs driver for userspace transfer

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #10485:
URL: https://github.com/apache/nuttx/pull/10485#issuecomment-1707801654

   > > @spiriou please take a look!
   > 
   > I'm not sure to understand how this PR would change the way EP are exposed to apps. I can only see USB descriptors refactoring here. Can you share more details?
   
   @spiriou the major change is:
   
   1. Move the common code to usbdev_fs, so all pass-through driver(e.g. adb, fastboot, mtp) can share the implementation.
   2. Split dev/adb0 to /dev/adb0/ep0 and /dev/adb0/ep1 since usb interface may have more than two data endpoints.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] acassis commented on pull request #10485: USB: Add usb fs driver for userspace transfer

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #10485:
URL: https://github.com/apache/nuttx/pull/10485#issuecomment-1706595859

   @spiriou please take a look!


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #10485: USB: Add usb fs driver for userspace transfer

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #10485:
URL: https://github.com/apache/nuttx/pull/10485#issuecomment-1707799748

   > > @spiriou please take a look!
   > 
   > I'm not sure to understand how this PR would change the way EP are exposed to apps. I can only see USB descriptors refactoring here. Can you share more details?
   
   @spiriou the major change is:
   
   1. Move the common code to usbdev_fs, so all pass-through driver(e.g. adb, fastboot, mtp) can share the implementation.
   2. Split dev/adb0 to /dev/adb0/ep0 and /dev/adb0/ep1 since many usb driver has more than two data endpoint.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] spiriou commented on pull request #10485: USB: Add usb fs driver for userspace transfer

Posted by "spiriou (via GitHub)" <gi...@apache.org>.
spiriou commented on PR #10485:
URL: https://github.com/apache/nuttx/pull/10485#issuecomment-1712303979

   > > > @spiriou please take a look!
   > > 
   > > 
   > > I'm not sure to understand how this PR would change the way EP are exposed to apps. I can only see USB descriptors refactoring here. Can you share more details?
   > 
   > @spiriou the major change is:
   > 
   > 1. Move the common code to usbdev_fs, so all pass-through driver(e.g. adb, fastboot, mtp) can share the implementation.
   > 2. Split dev/adb0 to /dev/adb0/ep0 and /dev/adb0/ep1 since many usb driver has more than two data endpoint.
   
   I'm not against this change although I feel like a char device with a single file descriptor makes more sense to interact with the ADB device endpoints, compared to 2 (ie. 1 file descriptor for read operations and another one for write operations). The ADB driver is very similar to the CDC ACM in terms of "userspace" interactions.
   
   I'll merge the change [https://github.com/spiriou/microADB/pull/36](https://github.com/spiriou/microADB/pull/36) once this PR is in.
   


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] spiriou commented on pull request #10485: USB: Add usb fs driver for userspace transfer

Posted by "spiriou (via GitHub)" <gi...@apache.org>.
spiriou commented on PR #10485:
URL: https://github.com/apache/nuttx/pull/10485#issuecomment-1707443675

   > @spiriou please take a look!
   
   I'm not sure to understand how this PR would change the way EP are exposed to apps.
   I can only see USB descriptors refactoring here. Can you share more details?


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] zyfeier commented on pull request #10485: USB: Add usb fs driver for userspace transfer

Posted by "zyfeier (via GitHub)" <gi...@apache.org>.
zyfeier commented on PR #10485:
URL: https://github.com/apache/nuttx/pull/10485#issuecomment-1707527704

   > > @spiriou please take a look!
   > 
   > I'm not sure to understand how this PR would change the way EP are exposed to apps. I can only see USB descriptors refactoring here. Can you share more details?
   
   The patch has been updated, please take a look.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org