Commit 154a4394 authored by Wesley Cheng's avatar Wesley Cheng Committed by Matthias Männich
Browse files

UPSTREAM: usb: dwc3: gadget: Execute gadget stop after halting the controller



Do not call gadget stop until the poll for controller halt is
completed.  DEVTEN is cleared as part of gadget stop, so the intention to
allow ep0 events to continue while waiting for controller halt is not
happening.

Fixes: c9668379 ("usb: dwc3: ep0: Don't prepare beyond Setup stage")
Cc: stable@vger.kernel.org
Acked-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20230420212759.29429-2-quic_wcheng@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 318577849
Change-Id: I9c72fdd08b44a200505f8e4a91ba8c42338753ca
(cherry picked from commit 39674be5)
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
parent 0b1767af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment