]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: gadget: don't use resource_index as a flag
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 Jan 2019 11:00:03 +0000 (13:00 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Feb 2019 06:45:56 +0000 (08:45 +0200)
commit974a1368c33ebb09c94c9ec1b523908cc7ca068f
tree8cdb27b8fec0f6dd1abfdf4e6b9601e918ae955a
parentacbfa6c26f21a18830ee064b588c92334305b6af
usb: dwc3: gadget: don't use resource_index as a flag

We have a proper flag for testing that we have a valid transfer in
flight, let's use that instead.

This patch is in preparation to fix a rare race condition that happens
upon Disconnect Interrupt.

Tested-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c