]> git.baikalelectronics.ru Git - kernel.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)
commitef691d87d788eecebf39ab5a0e790bfad1db75cc
tree8cdb27b8fec0f6dd1abfdf4e6b9601e918ae955a
parent7d575b0bdb0138e552b595ab5498e02ce2f732e2
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