]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc2: gadget: Add dwc2_gadget_incr_frame_num()
authorVardan Mikayelyan <mvardan@synopsys.com>
Thu, 26 May 2016 01:07:05 +0000 (18:07 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:49:21 +0000 (10:49 +0300)
commit92d1635d781ac17fc7d886b0c126838083f3c2b9
tree3ac16508dc525f1eb41fd4114a848ebe350de8c5
parent6b58cb07a850f9b6d348feb2455b2c264a515f4a
usb: dwc2: gadget: Add dwc2_gadget_incr_frame_num()

Increases and checks targeted frame number of current ep
if overrun happened, sets flag and masks with DSTS_SOFFN_LIMIT

Added following fields to struct dwc2_hsotg_ep
-target_frame: Targeted frame num to setup next ISOC transfer
-frame_overrun: Indicates SOF number overrun in DSTS

Tested-by: John Keeping <john@metanate.com>
Signed-off-by: Vardan Mikayelyan <mvardan@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c