1
0
Fork 0

usb: dwc2: Set actual frame number for completed ISOC transfer for none DDMA

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>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
hifive-unleashed-5.2
Minas Harutyunyan 2019-04-29 15:23:43 +04:00 committed by Felipe Balbi
parent fbc318afad
commit 4faf3b3655
1 changed files with 4 additions and 0 deletions

View File

@ -2417,6 +2417,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);
}