OSDN Git Service

usb: dwc3: gadget: Store resource index of start cmd
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Sun, 29 Mar 2020 23:13:04 +0000 (16:13 -0700)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 08:00:13 +0000 (11:00 +0300)
commit9bc3395c24962e8c8e4f590ca2740c56e4a7a4fe
treec72aa177d6d35b0481374c714aa58e58c2e76a72
parent8d99087c2db863c5fa3a4a1f3cb82b3a493705ca
usb: dwc3: gadget: Store resource index of start cmd

As long as the START_TRANSFER command completes, it provides the
resource index of the endpoint. Use this when we need to issue
END_TRANSFER command to an isoc endpoint to retry with a new
XferNotReady event.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c