summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/ep0.c
diff options
context:
space:
mode:
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>2022-04-22 04:22:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-05 22:03:23 +0200
commit8f8034f493b5eb1ad21ff392fd30c0cf9e71f73f (patch)
treea18a757e53b7df7bac637669e2dbacc2639ba2a9 /drivers/usb/dwc3/ep0.c
parentusb: dwc3: gadget: Refactor pullup() (diff)
downloadlinux-8f8034f493b5eb1ad21ff392fd30c0cf9e71f73f.tar.xz
linux-8f8034f493b5eb1ad21ff392fd30c0cf9e71f73f.zip
usb: dwc3: gadget: Don't modify GEVNTCOUNT in pullup()
If the GEVNTCOUNT indicates events in the event buffer, the driver needs to acknowledge them before the controller can halt. Simply let the interrupt handler acknowledges the remaining event generated by the controller while polling for DSTS.DEVCTLHLT. This avoids disabling irq and taking care of race condition between the interrupt handlers and pullup(). Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/ea306ec93c41ccafbdb5d16404ff3b6eca299613.1650593829.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/ep0.c')
0 files changed, 0 insertions, 0 deletions