aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@gmail.com>2023-08-28 17:43:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-02 16:43:05 +0200
commitfc85c59b85d111f51b58ecf08485fa74ac5471cd (patch)
treef06bea30572db9b724d536e01f37ef87e35ee831 /include/linux/usb.h
parentusb: raw-gadget: return USB_GADGET_DELAYED_STATUS from setup() (diff)
downloadwireguard-linux-fc85c59b85d111f51b58ecf08485fa74ac5471cd.tar.xz
wireguard-linux-fc85c59b85d111f51b58ecf08485fa74ac5471cd.zip
usb: gadgetfs: return USB_GADGET_DELAYED_STATUS from setup()
Return USB_GADGET_DELAYED_STATUS from the setup() callback for 0-length transfers as a workaround to stop some UDC drivers (e.g. dwc3) from automatically proceeding with the status stage. This workaround should be removed once all UDC drivers are fixed to always delay the status stage until a response is queued to EP0. Reviewed-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Andrey Konovalov <andreyknvl@gmail.com> Link: https://lore.kernel.org/r/a8d2b91f9890dc21daa359183e84879ff4525180.1693237258.git.andreyknvl@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions