usb: dwc2: gadget: fix packet drop issue in dwc2_gadget_handle_nak
authorZeng Tao <prime.zeng@hisilicon.com>
Tue, 12 Jun 2018 14:49:06 +0000 (22:49 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Jun 2018 09:41:01 +0000 (12:41 +0300)
commit6e967d7e2c4822eba4847ec09037119a0418aaef
treeba223f6454e189162a69d02eb23ee9575e04b377
parent896e518883f18e601335908192e33426c1f599a4
usb: dwc2: gadget: fix packet drop issue in dwc2_gadget_handle_nak

In ISOC transfer, when the NAK interrupt happens, we shouldn't complete
a usb request, the current flow will complete one usb request with no
hardware transfer, this will lead to a packet drop on the usb bus.

Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c