Commit 6144062
usb: dwc3: gadget: Cleanup SG handling
The current logic in dwc3 driver is tracking req->num_queued_sgs and
req->sg. But they can be checked base on the num_pending_sgs and
num_trbs. They are redundant and can complicate the SG logic. Let's
remove them.
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/96c7bf8f6b3e91e607d5b78ea51cb1d00c614eaf.1731545781.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent b7fc65f commit 6144062
2 files changed
+7
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | 944 | | |
946 | 945 | | |
947 | | - | |
948 | 946 | | |
949 | 947 | | |
950 | 948 | | |
| |||
964 | 962 | | |
965 | 963 | | |
966 | 964 | | |
967 | | - | |
968 | 965 | | |
969 | 966 | | |
970 | 967 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | | - | |
1548 | 1547 | | |
1549 | 1548 | | |
1550 | 1549 | | |
| |||
1625 | 1624 | | |
1626 | 1625 | | |
1627 | 1626 | | |
1628 | | - | |
1629 | | - | |
1630 | | - | |
| 1627 | + | |
1631 | 1628 | | |
1632 | 1629 | | |
1633 | 1630 | | |
| |||
3472 | 3469 | | |
3473 | 3470 | | |
3474 | 3471 | | |
3475 | | - | |
3476 | | - | |
3477 | | - | |
| 3472 | + | |
3478 | 3473 | | |
3479 | 3474 | | |
3480 | 3475 | | |
3481 | | - | |
| 3476 | + | |
3482 | 3477 | | |
3483 | 3478 | | |
3484 | | - | |
3485 | | - | |
3486 | | - | |
3487 | 3479 | | |
3488 | | - | |
| 3480 | + | |
| 3481 | + | |
3489 | 3482 | | |
3490 | 3483 | | |
3491 | 3484 | | |
3492 | 3485 | | |
3493 | 3486 | | |
3494 | 3487 | | |
3495 | 3488 | | |
3496 | | - | |
3497 | | - | |
3498 | | - | |
3499 | | - | |
3500 | | - | |
3501 | | - | |
3502 | | - | |
3503 | | - | |
3504 | | - | |
3505 | | - | |
3506 | 3489 | | |
3507 | 3490 | | |
3508 | | - | |
| 3491 | + | |
3509 | 3492 | | |
3510 | 3493 | | |
3511 | 3494 | | |
| |||
3515 | 3498 | | |
3516 | 3499 | | |
3517 | 3500 | | |
3518 | | - | |
3519 | | - | |
3520 | | - | |
3521 | | - | |
3522 | | - | |
3523 | | - | |
| 3501 | + | |
3524 | 3502 | | |
3525 | 3503 | | |
3526 | 3504 | | |
3527 | 3505 | | |
3528 | 3506 | | |
3529 | 3507 | | |
3530 | | - | |
3531 | | - | |
3532 | | - | |
3533 | | - | |
3534 | | - | |
3535 | | - | |
3536 | 3508 | | |
3537 | 3509 | | |
3538 | 3510 | | |
| |||
0 commit comments