public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] usb: host: add XHCI_CDNS_HOST flag
@ 2020-10-22  3:01 Peter Chen
  2020-10-22  3:01 ` [PATCH 2/2] usb: host: xhci-plat: forbid runtime pm conditionally Peter Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Peter Chen @ 2020-10-22  3:01 UTC (permalink / raw)
  To: mathias.nyman
  Cc: linux-usb, gregkh, linux-imx, jun.li, Peter Chen, Pawel Laszczak,
	Roger Quadros

The Cadence xHCI host has the same issue with Intel's,
it is triggered by reboot stress test.

Cc: Pawel Laszczak <pawell@cadence.com>
Cc: Roger Quadros <rogerq@ti.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
 drivers/usb/host/xhci.c | 2 +-
 drivers/usb/host/xhci.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 482fe8c5e3b4..fc72a03dc27f 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -193,7 +193,7 @@ int xhci_reset(struct xhci_hcd *xhci)
 	 * Without this delay, the subsequent HC register access,
 	 * may result in a system hang very rarely.
 	 */
-	if (xhci->quirks & XHCI_INTEL_HOST)
+	if (xhci->quirks & (XHCI_INTEL_HOST | XHCI_CDNS_HOST))
 		udelay(1000);
 
 	ret = xhci_handshake(&xhci->op_regs->command,
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 8be88379c0fb..4b7275c73ea5 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1877,6 +1877,7 @@ struct xhci_hcd {
 #define XHCI_SNPS_BROKEN_SUSPEND    BIT_ULL(35)
 #define XHCI_RENESAS_FW_QUIRK	BIT_ULL(36)
 #define XHCI_SKIP_PHY_INIT	BIT_ULL(37)
+#define XHCI_CDNS_HOST		BIT_ULL(38)
 
 	unsigned int		num_active_eps;
 	unsigned int		limit_active_eps;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-10-30 23:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-22  3:01 [PATCH 1/2] usb: host: add XHCI_CDNS_HOST flag Peter Chen
2020-10-22  3:01 ` [PATCH 2/2] usb: host: xhci-plat: forbid runtime pm conditionally Peter Chen
2020-10-22  6:48 ` [PATCH 1/2] usb: host: add XHCI_CDNS_HOST flag Roger Quadros
2020-10-22  7:17   ` Peter Chen
2020-10-26 15:02 ` Mathias Nyman
2020-10-27  1:50   ` Peter Chen
2020-10-27  8:33     ` Mathias Nyman
2020-10-27  9:50       ` Peter Chen
2020-10-28  7:02         ` Peter Chen
2020-10-30 23:14           ` Peter Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox