Commit 243f7c4
drivers: udc_dwc2: Disable control IN endpoint on timeout
DWC2 core sets DIEPCTL0 SNAK when SETUP packet is received. The CNAK bit
results in device sending NAK in response to IN token sent to EP0, but
it does not modify the TxFIFO in any way. The stale data in TxFIFO can
then lead to "FIFO space is too low" error. Solve the issue by disabling
and flushing IN endpoint 0 if previous control transfer did not finish.
Signed-off-by: Tomasz Moń <[email protected]>1 parent b6cfb45 commit 243f7c4
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| |||
829 | 832 | | |
830 | 833 | | |
831 | 834 | | |
| 835 | + | |
832 | 836 | | |
833 | 837 | | |
834 | 838 | | |
| |||
1557 | 1561 | | |
1558 | 1562 | | |
1559 | 1563 | | |
1560 | | - | |
| 1564 | + | |
| 1565 | + | |
1561 | 1566 | | |
1562 | 1567 | | |
1563 | 1568 | | |
| |||
0 commit comments