usb: dwc2: Add safety check for STSPHSERCVD intr
authorMinas Harutyunyan <hminas@synopsys.com>
Tue, 16 Jan 2018 12:03:58 +0000 (16:03 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 12 Feb 2018 08:59:19 +0000 (10:59 +0200)
commit9e95a66cce7250c358d496e1c3b62e29ce79ef40
treec80b1cf6d35b0f9fbe8e168c46ca9f69c9ac6d11
parent201ec568c57a43dbc73c7ac00e73c3c2d39559fc
usb: dwc2: Add safety check for STSPHSERCVD intr

STSPHSERCVD (status phase received) interrupt should be
handled when EP0 is in DWC2_EP0_DATA_OUT state.

Sometimes STSPHSERCVD interrupt asserted , when EP0
is not in DATA_OUT state. Spurios interrupt.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c