[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240223-j7200-usb-suspend-v3-7-b41c9893a130@bootlin.com>
Date: Fri, 23 Feb 2024 17:05:31 +0100
From: Théo Lebrun <theo.lebrun@...tlin.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>, Roger Quadros <rogerq@...nel.org>,
Peter Chen <peter.chen@...nel.org>, Pawel Laszczak <pawell@...ence.com>,
Nishanth Menon <nm@...com>, Vignesh Raghavendra <vigneshr@...com>,
Tero Kristo <kristo@...nel.org>
Cc: Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Grégory Clement <gregory.clement@...tlin.com>,
Kevin Hilman <khilman@...nel.org>, Alan Stern <stern@...land.harvard.edu>,
linux-usb@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Théo Lebrun <theo.lebrun@...tlin.com>
Subject: [PATCH v3 7/8] usb: cdns3-ti: add J7200 support with
reset-on-resume behavior
Add ti,j7200-usb compatible. Match data indicates the controller resets
on resume meaning:
- The cdns3-ti wrapper init sequence must be ran at resume.
- Tell the cdns3 core that we reset on resume. This silences a xHCI
warning visible in cases of unexpected resets.
Signed-off-by: Théo Lebrun <theo.lebrun@...tlin.com>
---
drivers/usb/cdns3/cdns3-ti.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c
index 29fb24c811b3..648243a27987 100644
--- a/drivers/usb/cdns3/cdns3-ti.c
+++ b/drivers/usb/cdns3/cdns3-ti.c
@@ -17,6 +17,8 @@
#include <linux/pm_runtime.h>
#include <linux/property.h>
+#include "core.h"
+
/* USB Wrapper register offsets */
#define USBSS_PID 0x0
#define USBSS_W1 0x4
@@ -255,7 +257,25 @@ static const struct dev_pm_ops cdns_ti_pm_ops = {
SYSTEM_SLEEP_PM_OPS(cdns_ti_suspend, cdns_ti_resume)
};
+static struct cdns3_platform_data cdns_ti_j7200_pdata = {
+ .quirks = CDNS3_RESET_ON_RESUME,
+};
+
+static const struct of_dev_auxdata cdns_ti_j7200_auxdata[] = {
+ {
+ .compatible = "cdns,usb3",
+ .platform_data = &cdns_ti_j7200_pdata,
+ },
+ {},
+};
+
+static const struct cdns_ti_match_data cdns_ti_j7200_match_data = {
+ .reset_on_resume = true,
+ .auxdata = cdns_ti_j7200_auxdata,
+};
+
static const struct of_device_id cdns_ti_of_match[] = {
+ { .compatible = "ti,j7200-usb", .data = &cdns_ti_j7200_match_data, },
{ .compatible = "ti,j721e-usb", },
{ .compatible = "ti,am64-usb", },
{},
--
2.43.2
Powered by blists - more mailing lists