-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] drivers: udc_dwc2: Rework control endpoint feeding
In Completer mode SETUP data can always be received and therefore endpoint 0 should only be enabled for OUT Data Stage and OUT Status Stage. In Buffer DMA mode, SETUP can only be received when endpoint is enabled and therefore the software has to make sure that there is a buffer available to receive SETUP data. Rework the EP0 buffer feeding to adhere to DWC2 Programming Guide. Synchronize the accesses with driver mutex to avoid interrupt related race conditions. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no> (cherry picked from commit 8348d9a2b712378998015f91176abe63adb2dfa7) (cherry picked from commit d0bef36)
- Loading branch information
1 parent
e0deed4
commit 31a6784
Showing
1 changed file
with
107 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters