linux-stable/drivers/usb/cdns3
Pawel Laszczak 051518d9cf usb: cdns3: Fixed incorrect gadget state
commit aa35772f61 upstream.

For delayed status phase, the usb_gadget->state was set
to USB_STATE_ADDRESS and it has never been updated to
USB_STATE_CONFIGURED.
Patch updates the gadget state to correct USB_STATE_CONFIGURED.
As a result of this bug the controller was not able to enter to
Test Mode while using MSC function.

Cc: <stable@vger.kernel.org>
Fixes: 7733f6c32e ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20210623070247.46151-1-pawell@gli-login.cadence.com
Signed-off-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-12 13:22:10 +02:00
..
cdns3-imx.c usb: cdns3: imx: fix can't create core device the second time issue 2021-01-27 11:55:17 +01:00
cdns3-pci-wrap.c usb: cdns3: fix spelling mistake "wrapperr" -> "wrapper" 2020-03-19 15:14:48 +01:00
cdns3-ti.c USB: Replace HTTP links with HTTPS ones 2020-07-21 13:41:57 +02:00
core.c usb: cdns3: fix NULL pointer dereference on no platform data 2021-03-11 14:17:26 +01:00
core.h usb: cdns3: add quirk for enable runtime pm by default 2021-03-11 14:17:25 +01:00
debug.h
drd.c usb: cdns3: drd: call PHY .set_mode accordingly 2020-10-02 09:57:40 +03:00
drd.h usb: cdns3: Enable workaround for USB2.0 PHY Rx compliance test PHY lockup 2020-10-02 09:57:39 +03:00
ep0.c usb: cdns3: Fixed incorrect gadget state 2021-08-12 13:22:10 +02:00
gadget-export.h
gadget.c usb: cdns3: Enable TDL_CHK only for OUT ep 2021-07-25 14:36:18 +02:00
gadget.h usb: cdns3: Fix on-chip memory overflow issue 2020-10-30 11:40:54 +08:00
host-export.h usb: cdns3: host: add .suspend_quirk for xhci-plat.c 2021-03-11 14:17:25 +01:00
host.c usb: cdns3: fix NULL pointer dereference on no platform data 2021-03-11 14:17:26 +01:00
Kconfig
Makefile
trace.c
trace.h usb: cdns3: trace: fix some endian issues 2020-07-09 10:13:07 +03:00