diff options
author | Pawel Laszczak <[email protected]> | 2019-10-13 10:20:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-10-15 20:07:44 +0200 |
commit | f616c3bda47e314ddb797e969f27081f3c33e3b3 (patch) | |
tree | 60772d2e6f6734ed5cc3aa6768df7439449a942d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fd47a417e75e2506eb3672ae569b1c87e3774155 (diff) |
usb: cdns3: Fix dequeue implementation.
Dequeuing implementation in cdns3_gadget_ep_dequeue gets first request from
deferred_req_list and changed TRB associated with it to LINK TRB.
This approach is incorrect because deferred_req_list contains requests
that have not been placed on hardware RING. In this case driver should
just giveback this request to gadget driver.
The patch implements new approach that first checks where dequeuing
request is located and only when it's on Transfer Ring then changes TRB
associated with it to LINK TRB.
During processing completed transfers such LINK TRB will be ignored.
Reported-by: Peter Chen <[email protected]>
Signed-off-by: Pawel Laszczak <[email protected]>
Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Reviewed-by: Peter Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions