OrangePi_CM5/drivers/usb/dwc3
Thinh Nguyen bd7f84708e usb: dwc3: gadget: Return proper request status
commit c7428dbddcf4ea1919e1c8e15f715b94ca359268 upstream.

If the user sets the usb_request's no_interrupt, then there will be no
completion event for the request. Currently the driver incorrectly uses
the event status of a different request to report the status for a
request with no_interrupt. The dwc3 driver needs to check the TRB status
associated with the request when reporting its status.

Note: this is only applicable to missed_isoc TRB completion status, but
the other status are also listed for completeness/documentation.

Fixes: 6d8a019614 ("usb: dwc3: gadget: check for Missed Isoc from event status")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/db2c80108286cfd108adb05bad52138b78d7c3a7.1650673655.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-09 09:04:59 +02:00
..
Kconfig
…
Makefile
…
core.c usb: dwc3: core: Only handle soft-reset in DCTL 2022-05-09 09:04:58 +02:00
core.h
…
debug.h
…
debugfs.c
…
drd.c usb: dwc3: Try usb-role-switch first in dwc3_drd_init 2022-05-09 09:04:58 +02:00
dwc3-exynos.c
…
dwc3-haps.c
…
dwc3-keystone.c
…
dwc3-meson-g12a.c
…
dwc3-of-simple.c
…
dwc3-omap.c usb: dwc3: omap: fix "unbalanced disables for smps10_out1" on omap5evm 2022-04-13 21:01:00 +02:00
dwc3-pci.c usb: dwc3: pci: Fix Bay Trail phy GPIO mappings 2022-03-02 11:42:55 +01:00
dwc3-qcom.c usb: dwc3: qcom: Fix NULL vs IS_ERR checking in dwc3_qcom_probe 2022-01-27 10:54:01 +01:00
dwc3-st.c
…
ep0.c
…
gadget.c usb: dwc3: gadget: Return proper request status 2022-05-09 09:04:59 +02:00
gadget.h
…
host.c
…
io.h
…
trace.c
…
trace.h
…
ulpi.c
…