Commit 04c03d1
Felipe Balbi
usb: dwc3: gadget: handle request->zero
So far, dwc3 has always missed request->zero
handling for every endpoint. Let's implement
that so we can handle cases where transfer must
be finished with a ZLP.
Note that dwc3 is a little special. Even though
we're dealing with a ZLP, we still need a buffer
of wMaxPacketSize bytes; to hide that detail from
every gadget driver, we have a preallocated buffer
of 1024 bytes (biggest bulk size) to use (and
share) among all endpoints.
Reported-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>1 parent 3ff4b57 commit 04c03d1
2 files changed
+51
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
647 | 648 | | |
648 | 649 | | |
649 | 650 | | |
| 651 | + | |
650 | 652 | | |
651 | 653 | | |
652 | 654 | | |
| |||
734 | 736 | | |
735 | 737 | | |
736 | 738 | | |
| 739 | + | |
737 | 740 | | |
738 | 741 | | |
739 | 742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1162 | 1188 | | |
1163 | 1189 | | |
1164 | 1190 | | |
| |||
1172 | 1198 | | |
1173 | 1199 | | |
1174 | 1200 | | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1175 | 1211 | | |
1176 | 1212 | | |
1177 | 1213 | | |
| |||
2744 | 2780 | | |
2745 | 2781 | | |
2746 | 2782 | | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
2747 | 2789 | | |
2748 | 2790 | | |
2749 | 2791 | | |
| |||
2785 | 2827 | | |
2786 | 2828 | | |
2787 | 2829 | | |
2788 | | - | |
| 2830 | + | |
2789 | 2831 | | |
2790 | 2832 | | |
2791 | 2833 | | |
2792 | 2834 | | |
2793 | | - | |
| 2835 | + | |
2794 | 2836 | | |
2795 | 2837 | | |
2796 | 2838 | | |
2797 | 2839 | | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
2798 | 2843 | | |
2799 | 2844 | | |
2800 | 2845 | | |
| |||
2827 | 2872 | | |
2828 | 2873 | | |
2829 | 2874 | | |
| 2875 | + | |
2830 | 2876 | | |
2831 | 2877 | | |
2832 | 2878 | | |
| |||
0 commit comments