Message ID | 0fea0710927341839f78280a11815b4f099e960c.1556536963.git.hminas@synopsys.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 4faf3b36553a0a5304f58ee3a620e659739a2e20 |
Headers | show |
Series | usb: dwc2: Set actual frame number for completed ISOC transfer for none DDMA | expand |
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 6812a8a3a98b..608e0b1331c5 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -2402,6 +2402,10 @@ static void dwc2_hsotg_handle_outdone(struct dwc2_hsotg *hsotg, int epnum) dwc2_gadget_incr_frame_num(hs_ep); } + /* Set actual frame number for completed transfers */ + if (!using_desc_dma(hsotg) && hs_ep->isochronous) + req->frame_number = hsotg->frame_number; + dwc2_hsotg_complete_request(hsotg, hs_ep, hs_req, result); }
On ISOC OUT transfer completion, in none DDMA mode, set actual frame number returning to function driver in usb_request. Signed-off-by: Minas Harutyunyan <hminas@synopsys.com> --- drivers/usb/dwc2/gadget.c | 4 ++++ 1 file changed, 4 insertions(+)