From mboxrd@z Thu Jan 1 00:00:00 1970 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 6173D13BC0C; Mon, 23 Dec 2024 16:11:02 +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=1734970262; cv=none; b=EwwkIPdmZRACl6ZMaqdSZe5gFcBYdkWQ6wpVfceCPI/fI+54NRF2KzntjuvRV9JyHjEmufSK29vbLU6qMTljGIPPHJBIRVUjypLNYZhpRVJZDb0mxvE5kl9tk79pFTGj5Oo8yuQ6LDjbU9WwhGPMpmT6GQVSx8nZSK6b422eCBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734970262; c=relaxed/simple; bh=oQsN3v/u/Qc1gnbBC3lFKB6Px1tYBBVQvTfPjP5MAnA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uRHNrKQAd0Z0fF4nRTv3T2USOqlh1A9cLir1pRIPBe8BiabWetblbA1Coh5J7+unp7saZ8Qnkts5igkG0edX9sZff6pmLEQDnCkF6DJ74IAnlsnvwA5qLB7ZgFZhVOl+HEOYsoZr8SP4Hb1mdRKsxruWzbhiPXgBKD1H4FCxVmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vMGtc3jZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vMGtc3jZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78E2CC4CED3; Mon, 23 Dec 2024 16:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734970262; bh=oQsN3v/u/Qc1gnbBC3lFKB6Px1tYBBVQvTfPjP5MAnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vMGtc3jZk7EpWXEQqiuuNry3DwfIvDgP52bwJ9gniBlHVadjsSNsuzWH17l4nKk+X KGSAb6gmxdtaK7fMe6RevqRHmj+DUq2YtHLZpFvrdwOxlslB36FhlRmbSP7u1qdcff s421DL0K4/YYxUc7Z4QkEzDL2BimFRSOJS4XirJc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Roger Quadros , Ravi Gunasekaran , Peter Chen , Sasha Levin Subject: [PATCH 6.6 005/116] usb: cdns3-ti: Add workaround for Errata i2409 Date: Mon, 23 Dec 2024 16:57:55 +0100 Message-ID: <20241223155359.754497879@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241223155359.534468176@linuxfoundation.org> References: <20241223155359.534468176@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Roger Quadros [ Upstream commit b50a2da03bd95784541b3f9058e452cc38f9ba05 ] 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 Acked-by: Peter Chen Link: https://lore.kernel.org/r/20240516044537.16801-3-r-gunasekaran@ti.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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.39.5