usb: dwc2: gadget: Add dwc2_gadget_read_ep_interrupts function
authorVardan Mikayelyan <mvardan@synopsys.com>
Thu, 26 May 2016 01:07:10 +0000 (18:07 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:49:37 +0000 (10:49 +0300)
commit326015887b6a1321fd61f7a16816241ad841a03c
treed6ffb46c2d8ed913edbcae584450cb2dc19116aa
parent142bd33fcd185d850178f7f8697ecbeaaa18e257
usb: dwc2: gadget: Add dwc2_gadget_read_ep_interrupts function

Reads and returns interrupts for given endpoint, by masking epint_reg
with corresponding mask.

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/gadget.c