summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc
diff options
context:
space:
mode:
authorPawel Laszczak <pawell@cadence.com>2019-10-13 10:20:20 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-15 20:07:44 +0200
commitf616c3bda47e314ddb797e969f27081f3c33e3b3 (patch)
tree60772d2e6f6734ed5cc3aa6768df7439449a942d /drivers/usb/gadget/udc
parentfd47a417e75e2506eb3672ae569b1c87e3774155 (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 <peter.chen@nxp.com> Signed-off-by: Pawel Laszczak <pawell@cadence.com> Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Reviewed-by: Peter Chen <peter.chen@nxp.com> Link: https://lore.kernel.org/r/1570958420-22196-1-git-send-email-pawell@cadence.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/udc')
0 files changed, 0 insertions, 0 deletions