Commit c139ec1
UPSTREAM: usb: dwc3: gadget: cope with XferNotReady before usb_ep_queue()
If XferNotReady comes before usb_ep_queue() we will
set our PENDING request flag and wait for a
request. However, originally, we were assuming
usb_ep_queue() would always happen before our first
XferNotReady and that causes a corner case where we
could try to issue ENDTRANSFER command before
STARTTRANSFER.
Let's fix that by tracking endpoints which have been
started.
Change-Id: I8432a70fff0da1b4bc1ea7d86e13d491e89a05bb
Reported-by: Janusz Dziedzic <januszx.dziedzic@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
(cherry picked from commit 6cb2e4e3de10893f38dbf3923a9cc50c76548a89)1 parent 4b36c00 commit c139ec1
2 files changed
Lines changed: 30 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
341 | 355 | | |
342 | 356 | | |
343 | 357 | | |
| |||
1058 | 1072 | | |
1059 | 1073 | | |
1060 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1061 | 1083 | | |
1062 | 1084 | | |
1063 | 1085 | | |
| |||
1178 | 1200 | | |
1179 | 1201 | | |
1180 | 1202 | | |
1181 | | - | |
| 1203 | + | |
1182 | 1204 | | |
1183 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1184 | 1211 | | |
1185 | 1212 | | |
1186 | 1213 | | |
| |||
1451 | 1478 | | |
1452 | 1479 | | |
1453 | 1480 | | |
1454 | | - | |
1455 | 1481 | | |
1456 | | - | |
1457 | | - | |
| 1482 | + | |
1458 | 1483 | | |
1459 | 1484 | | |
1460 | 1485 | | |
| |||
0 commit comments