kernel-fxtec-pro1x/drivers/usb/dwc3
Yu Chen 8201fdac15 usb: dwc3: Increase timeout for CmdAct cleared by device controller
[ Upstream commit 1c0e69ae1b9f9004fd72978612ae3463791edc56 ]

If the SS PHY is in P3, there is no pipe_clk, HW may use suspend_clk
for function, as suspend_clk is slow so EP command need more time to
complete, e.g, imx8M suspend_clk is 32K, set ep configuration will
take about 380us per below trace time stamp(44.286278 - 44.285897
= 0.000381):

configfs_acm.sh-822   [000] d..1    44.285896: dwc3_writel: addr
000000006d59aae1 value 00000401
configfs_acm.sh-822   [000] d..1    44.285897: dwc3_readl: addr
000000006d59aae1 value 00000401
... ...
configfs_acm.sh-822   [000] d..1    44.286278: dwc3_readl: addr
000000006d59aae1 value 00000001
configfs_acm.sh-822   [000] d..1    44.286279: dwc3_gadget_ep_cmd:
ep0out: cmd 'Set Endpoint Configuration' [401] params 00001000
00000500 00000000 --> status: Successful

This was originally found on Hisilicon Kirin Soc that need more time
for the device controller to clear the CmdAct of DEPCMD.

Signed-off-by: Yu Chen <chenyu56@huawei.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:14:45 +02:00
..
core.c usb: dwc3: core: add support for disabling SS instances in park mode 2020-04-17 10:48:41 +02:00
core.h usb: dwc3: gadget: Properly set maxpacket limit 2020-05-10 10:30:06 +02:00
debug.h usb: dwc3: debugfs: Properly print/set link state for HS 2019-12-13 08:51:45 +01:00
debugfs.c usb: dwc3: debugfs: Properly print/set link state for HS 2019-12-13 08:51:45 +01:00
drd.c usb: dwc3: dwc3_get_extcon() can be static 2018-05-21 10:01:01 +03:00
dwc3-exynos.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-haps.c PCI: Move Synopsys HAPS platform device IDs 2020-06-22 09:05:23 +02:00
dwc3-keystone.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-of-simple.c usb: dwc3: of-simple: avoid unused function warnings 2018-08-29 09:59:37 +03:00
dwc3-omap.c usb: dwc3: omap: don't miss events during suspend/resume 2018-02-12 10:53:18 +02:00
dwc3-pci.c usb: dwc3: pci: Fix reference count leak in dwc3_pci_resume_work 2020-07-16 08:17:23 +02:00
dwc3-qcom.c usb: dwc3: qcom: mark PM functions as __maybe_unused 2018-06-19 12:48:12 +03:00
dwc3-st.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
ep0.c usb: dwc3: ep0: Clear started flag on completion 2019-12-17 20:34:45 +01:00
gadget.c usb: dwc3: Increase timeout for CmdAct cleared by device controller 2020-10-01 13:14:45 +02:00
gadget.h usb: dwc3: gadget: introduce cancelled_list 2019-07-03 13:14:44 +02:00
host.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
io.h USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
Kconfig usb: dwc3: Allow building USB_DWC3_QCOM without EXTCON 2020-01-27 14:51:22 +01:00
Makefile usb: dwc3: Add a glue driver for Synopsys HAPS platform 2018-07-26 13:47:51 +03:00
trace.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
trace.h usb: dwc3: trace: add missing break statement to make compiler happy 2019-02-12 19:47:06 +01:00
ulpi.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00