OSDN Git Service

usb: dwc3: gadget: Refactor EP0 forced stall/restart into a separate API
authorWesley Cheng <quic_wcheng@quicinc.com>
Thu, 20 Apr 2023 21:27:59 +0000 (14:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Apr 2023 05:07:44 +0000 (07:07 +0200)
commit8f40fc0808137c157dd408d2632e63bfca2aecdb
tree066d3feb4fea4a572db893f36a107eb145f3c39a
parent39674be56fba1cd3a03bf4617f523a35f85fd2c1
usb: dwc3: gadget: Refactor EP0 forced stall/restart into a separate API

Several sequences utilize the same routine for forcing the control endpoint
back into the SETUP phase.  This is required, because those operations need
to ensure that EP0 is back in the default state.

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20230420212759.29429-3-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c