]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: Clear DEP flags after stop transfers in ep disable
authorWesley Cheng <wcheng@codeaurora.org>
Thu, 12 Aug 2021 17:16:50 +0000 (20:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Aug 2021 11:08:03 +0000 (13:08 +0200)
commita9d3d8cdd57e286cf1f6710207abd53b62692cf7
treed3fb9a504342a4bddb291886f43275f766e81a81
parent4faa928b3accc62d483c0eed3830988f86853328
usb: dwc3: gadget: Clear DEP flags after stop transfers in ep disable

[ Upstream commit 5aef629704ad4d983ecf5c8a25840f16e45b6d59 ]

Ensure that dep->flags are cleared until after stop active transfers
is completed.  Otherwise, the ENDXFER command will not be executed
during ep disable.

Fixes: f09ddcfcb8c5 ("usb: dwc3: gadget: Prevent EP queuing while stopping transfers")
Cc: stable <stable@vger.kernel.org>
Reported-and-tested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/1616610664-16495-1-git-send-email-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c