UPSTREAM: usb: dwc2: gadget: Prevent handling of host interrupts
authorVardan Mikayelyan <mvardan@synopsys.com>
Thu, 28 Apr 2016 03:20:48 +0000 (20:20 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:48:33 +0000 (18:48 +0800)
commit83ecfee1acac8afc06f8775136259c75167ab488
tree01c55e4b02ef20eeec25d580e8371148547c67ba
parent4e026285ea55a260ec07b774012a0131d4fc85a0
UPSTREAM: usb: dwc2: gadget: Prevent handling of host interrupts

In host slave mode, the core asserts the rxready, txfifoempty interrupts
that get serviced in the gadget irq handler. Prevent servicing of these
when not in the gadget mode of operation.

Change-Id: I821c48399f876de045649507435bf2a3e9cf4cc5
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>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit ee3de8d750134703c702534173cd8623d1b32c38)
drivers/usb/dwc2/gadget.c