Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp669584lqo; Thu, 16 May 2024 19:30:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLRLJOEmdBqaBeGa6LQTCSxNU/sUbknJiojBYwLtjkr6rENKZeJ6Z0QvGWT3WsYKlh6MdByHskIDyX1W8ECwmYXP6JzuE7c3RCeZKipA== X-Google-Smtp-Source: AGHT+IEq+soqsnIrg4VwGkF+x/XQI6pxKGPjNSdd59GcwKasM0CiSX8L5w4NA6YTYLaJod3Igc2P X-Received: by 2002:a05:6a20:914f:b0:1ac:f796:963c with SMTP id adf61e73a8af0-1afde1ddaa9mr25615406637.56.1715913029510; Thu, 16 May 2024 19:30:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715913029; cv=pass; d=google.com; s=arc-20160816; b=spkVdOdQli2MTwCMKp5GvarnVEcSmTqoxLh1xpHueciaZv2x01T3X7oVxApm6PMo7O Huw4/R4djK6M9+1EzqD+v9r0ui1F/KyTupAxpd6JCXcJh4f1gnrHZncJv5fzm4uHVcMM bzWaPmPCUUc1QcDJ444aLTF8tu9qqohEtK77qpiIebsH4Q6DhKHBS8VOadsGJwpcI1Il QnOnAlRvhDF91wVlCnN/9nKQ9HF4AdJhTjkPecnv4Ru+hiEGcsi/TDHtUEaPXJm4bLzs 4WWBuUc5pIKqKZ3fCnD6QR55IjBpnsmkOBYjkByPHNtaMCRTqHyVh2vNso+OA08igV8w /2ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0/L3g5ZGKsFks+hHMS/AxSMEncDq7hhlcOCvkA2UlvY=; fh=6oQwzfl2XHZ+gWtEboxf6/TdGzYMDGS5ZSv1Aao0/vI=; b=D/lNxDiaIQTiwJSOtbt4tUmFGtsqH1W8Y9aZ/3PZ7igsA/KcPvFug1wzUd3lRiLNpF Z3eUrSNXgc3PfWG8mXrUH64m4KYYpKsomIQ5s20vEHoupPG7JiaV6J7Zj578UrmDque3 x+rROSszHkI64sZreWDu0PdN5iNqGcuwHtnSFNiPnATvEl5Ka6qdsDqnSogGYaT6posL 5OVLOfx4PFa0doB/DqgXRvOrtgLoF/AJ2NisaYAiXArbhKWT9p842xGqX8zzBwbhBJ6v qhYB6GqTpwr2LpgyGl4F7D7twKu/cxADZHCNhIM1CDNsrLa9l8o1d3XnoZJhraNNKAWy qGcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H1s9TQL3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c26a4besi162770755ad.606.2024.05.16.19.30.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 19:30:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H1s9TQL3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E3529284B0B for ; Fri, 17 May 2024 02:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA42C79CF; Fri, 17 May 2024 02:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H1s9TQL3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AAAB8F45; Fri, 17 May 2024 02:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715912473; cv=none; b=eN9n3noCYn1InJa5F/5ApAX4ibBp0JMRg9nBZndWXh4Y1B7fjo/GojH94+QhSykPIk5+D4iRePTucL2b+KSJOaECbhyGCvNuS3wB8pwxPdgjxsuLMzFrspwYRBQZy74nQE7UAkbJRNHCcAJ1YRtY4e328E9qe+gtP86/AZjAeKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715912473; c=relaxed/simple; bh=lv+BFypM/MGqDiKUng9ESU1q6Q2cfSZHaaPNHlF+Oag=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Hnf0a3RR7n6SUdGxXmnVoH51OzPG8knLuj8K4g9J4x1lDY0HO2k7C9sRRAqauLtxKyJD8SMthudL/392/tUgj1phFarEyOefPj00idG3+608xVyH1TxbZIiMn0ROWUpDhYPOp2gDYPbQE0bkFIcbDSJxNdE/0OjeLcUPpccTwww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H1s9TQL3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A26CC113CC; Fri, 17 May 2024 02:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715912472; bh=lv+BFypM/MGqDiKUng9ESU1q6Q2cfSZHaaPNHlF+Oag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H1s9TQL3sXeZUGIgQ0N8ea49nwiSCidex/mkoBxvb4jzbsiMMIWhQARLbw/X+ISen B8GdLbQg7db8QieZoZSH32NwKOVaw6R7ciO7RoOuSlS91OJStRCXjpcBdnbsWLA4Eu 98Uf6pWJcgrqd+D2bGXXeRsmuEXKfySJ4pRA8hoD5uV9bWh3N4jHhD+b8B5qbAQC/2 FfUlXyeE+v7dyHXk0OGB0orJTwFA1HlNCy95Ejohl60D5wwCjFR5Ch7UgN7xKKznx6 VxsaNZI1hoS8/POF6WFIbGEg9cBx7qmj1IaOf/Bzf7w3PloEkujhI9TMLOhT+sttlt XO3rIQ4akm2hQ== Date: Fri, 17 May 2024 10:21:04 +0800 From: Peter Chen To: Ravi Gunasekaran Cc: pawell@cadence.com, rogerq@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, srk@ti.com Subject: Re: [PATCH v3 2/2] usb: cdns3-ti: Add workaround for Errata i2409 Message-ID: <20240517022104.GB3458484@nchen-desktop> References: <20240516044537.16801-1-r-gunasekaran@ti.com> <20240516044537.16801-3-r-gunasekaran@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240516044537.16801-3-r-gunasekaran@ti.com> On 24-05-16 10:15:37, Ravi Gunasekaran wrote: > From: Roger Quadros > > TI USB2 PHY is known to have a lockup issue on very short > suspend intervals. Enable the Suspend Residency quirk flag to > workaround this as described in Errata i2409 [1]. > > [1] - https://www.ti.com/lit/er/sprz457h/sprz457h.pdf > > Signed-off-by: Roger Quadros > Signed-off-by: Ravi Gunasekaran > --- > Change log: > ---------- > Changes since v2: > ---------------- > * No change > > Changes since v1: > ---------------- > * No change > > v2: https://lore.kernel.org/all/20240516042845.31211-1-r-gunasekaran@ti.com/ > v1: https://lore.kernel.org/all/20240514092421.20897-1-r-gunasekaran@ti.com/#t > > drivers/usb/cdns3/cdns3-ti.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c > index 5945c4b1e11f..cfabc12ee0e3 100644 > --- a/drivers/usb/cdns3/cdns3-ti.c > +++ b/drivers/usb/cdns3/cdns3-ti.c > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include "core.h" > > /* USB Wrapper register offsets */ > #define USBSS_PID 0x0 > @@ -85,6 +86,18 @@ static inline void cdns_ti_writel(struct cdns_ti *data, u32 offset, u32 value) > writel(value, data->usbss + offset); > } > > +static struct cdns3_platform_data cdns_ti_pdata = { > + .quirks = CDNS3_DRD_SUSPEND_RESIDENCY_ENABLE, /* Errata i2409 */ > +}; > + > +static const struct of_dev_auxdata cdns_ti_auxdata[] = { > + { > + .compatible = "cdns,usb3", > + .platform_data = &cdns_ti_pdata, > + }, > + {}, > +}; > + > static int cdns_ti_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > @@ -176,7 +189,7 @@ static int cdns_ti_probe(struct platform_device *pdev) > reg |= USBSS_W1_PWRUP_RST; > cdns_ti_writel(data, USBSS_W1, reg); > > - error = of_platform_populate(node, NULL, NULL, dev); > + error = of_platform_populate(node, NULL, cdns_ti_auxdata, dev); > if (error) { > dev_err(dev, "failed to create children: %d\n", error); > goto err; > -- > 2.17.1 > Acked-by: Peter Chen -- Thanks, Peter Chen