Message ID | 20250403053937.765849-5-hongxing.zhu@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DE45C3600C for <linux-arm-kernel@archiver.kernel.org>; Thu, 3 Apr 2025 05:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wnBrFExYhqrcsrH8shIlvb/rzrmXl02sb0ZzR2qwk5A=; b=dnF//CecBd2KsKltR50TTqZ1ef oLAEZPI+tukRqvYxTQqX2AV2kpFxxRPE5thctdIxhkt5jYmfnBYKsQtB26LeGW0d/AxE88Kz0NRRz bZ/GCMLk3SGOrorvCK9Y6IaQnFfrekOuk0KM5CAdbSjLo/t5dkz5R6a1O3EIMYetQ8g8psBLs6bDG ZDpUBzY0Zca7QtaFm5VKXeB3KyARL0tenaoxkGs9FxhgfuUkm1uX3QB0HRNbGAjjt0d0QLftDmh2R uIpwCKlAUmusYC7ATRJR/5AdQPT21Ms+dyelfQ5z7LT3x0wHTl4Oep7ZcMKGJbF5p8+32tarSZCNZ YwZjkLwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u0DSl-00000007qRE-3KvI; Thu, 03 Apr 2025 05:50:03 +0000 Received: from mail-vi1eur05on20601.outbound.protection.outlook.com ([2a01:111:f403:2613::601] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u0DKK-00000007p3s-1WLl for linux-arm-kernel@lists.infradead.org; Thu, 03 Apr 2025 05:41:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jiVEenypN0Cp8sq9S9CN005K7Y3NITT1x4WUqA2oq5tQX0EEVoGeRAX3IwmwJLITmMHd1WbXroL9rczhrqf8w3KX6OtWplY+P7tK+6QvaAbSXs3rsFYiYe/VMlpKnSHX9uZrjvZWISKN85IxD+5fyvsNR0sQ+b2filJW2jGTCLsDNjnRF+J3xvUFjzjGdz72N5/qpQUNTOw3rPQruNqC74Ak5Sgxpz49luGBCqsDE6AU54oUDn4l41744wdvFZ8FrHqo6W3iKcHXkiW7Jp709Xgp8tLckDnq1Q0a5yj8d0swNTK6uNPOP1CXsrcwdGjvSZw4cHVab3ZLH5Z/Bfm8gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wnBrFExYhqrcsrH8shIlvb/rzrmXl02sb0ZzR2qwk5A=; b=uf7ogZrFsV/pQeYdxYvDL3qvv2k9NRZ28q5iuz92bMQ6KPUb2LWBOFpLsUST0IGMXQbOGAuqkBrJ5/JnBwTbdTwPYfSDRWO8TFjaFbmbpzlkTE2HdTPLzEVFaQu7rOCGf7QDrPRM0FZbIAOUBU18yKCu71lZW3Fsu7vbpHqLJXmTUkZH/sJnhMtyPWqRtF+SlD70pFQOOWWEe0bySlvETnLCtNLxW8KzEoXZNOjVKoUMwaHpKLeXNhdho1kPBNTscXOUgkEeUAuHL9tb2cYWsQkyKLJC4ieIk4zSC1uB9D1cZ/WeHM/3O6Yuk+M9WpamyokBtVyydtnkB30B0BiibA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wnBrFExYhqrcsrH8shIlvb/rzrmXl02sb0ZzR2qwk5A=; b=RnWwJV754ZKwU3dAyD50NHDtha0emXiNlaihZNflRfOb/gtlyTPlwT6oYwN/HtiQTSLtF1FN5c8luZiYjMgWBVqZ2q8WrMmbtK9QYhWEjANyfnZLJpGAtl2/eun5TsPJ03E4JRb0vc1/GHdgXEafgApOwWHXY5nKWdf3BgSFfnMvNRvnc85VDrZmceBmQ5KyEmrRIrK4h77/W+vVCd1XOvQiK2nmzlSVdcIFDdp7GS+d62TOi2Oh5/0/jFucVrgv+2mqKogH0Oz8Ml8H3TUFa7gog04Gm2DXv+03zk45FvuIiwtAqoNlJLHFQ0X6NlpRYig/x7vI91mO2A231w5f5w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8676.eurprd04.prod.outlook.com (2603:10a6:20b:42b::10) by AM9PR04MB8145.eurprd04.prod.outlook.com (2603:10a6:20b:3e1::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.46; Thu, 3 Apr 2025 05:41:16 +0000 Received: from AS8PR04MB8676.eurprd04.prod.outlook.com ([fe80::28b2:de72:ad25:5d93]) by AS8PR04MB8676.eurprd04.prod.outlook.com ([fe80::28b2:de72:ad25:5d93%4]) with mapi id 15.20.8583.041; Thu, 3 Apr 2025 05:41:16 +0000 From: Richard Zhu <hongxing.zhu@nxp.com> To: frank.li@nxp.com, l.stach@pengutronix.de, lpieralisi@kernel.org, kw@linux.com, manivannan.sadhasivam@linaro.org, robh@kernel.org, bhelgaas@google.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, Richard Zhu <hongxing.zhu@nxp.com>, Frank Li <Frank.Li@nxp.com> Subject: [PATCH v4 4/7] PCI: imx6: Workaround i.MX95 PCIe may not exit L23 ready Date: Thu, 3 Apr 2025 13:39:34 +0800 Message-Id: <20250403053937.765849-5-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20250403053937.765849-1-hongxing.zhu@nxp.com> References: <20250403053937.765849-1-hongxing.zhu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MA0PR01CA0042.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:81::13) To AS8PR04MB8676.eurprd04.prod.outlook.com (2603:10a6:20b:42b::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8676:EE_|AM9PR04MB8145:EE_ X-MS-Office365-Filtering-Correlation-Id: f6c98f27-f58c-4bd5-dbf2-08dd7272273e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: e/WAbdTONxr0tIvy/Um2/7K66wWgvFfhDMF54jTEd2Dis+DnZtNvNCluua14aFluUES7R5GGktL7YXGv3VtckybGockx5GReUc7ZUjPfANIMntrLszLNSkAzzIiuNUfxBl4/vsqJInI1WfggNr49D63h4u35bNsje+5d/RLWHO1JSVw/USk45yRc0dtmFNnpLN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UQr6BaBBLzOHDW6YG3MgrQZ04xBy6BgtGg5BWNSTv9GqOhN/5gf0kJMKaA4/eHezJkxNgKnTu0Ura2CpUdSi8Fk32WDCctF2Q2r+Jxgj/1MJdbJB/ek4tq7IK8dzHxbQhyAjWyP6g3aEqxRfC0EsEmY1F+5s3Tc1ahyWzFlXSTrILmeT5eMdqVZpw+QipLA8/g8wIwM2spqAAwzGIKmCovK9p/3srzhkuw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8676.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OXygCRBMaWeLv18p5mwfts1Itz01ITjKIye4C1cuQQjlGUufzxNX8cp75oMHqy4LoFDAmUIgt+TWjkGkS8QuS12/RuA8TFzWaRpxQnHPv4kG8CwJDLOTmIrhsXa1vBwFtJdwip+YPT7egMrd7Jv6vwbbOH4RM1TEyt1FBP1JDJ2FiDMaVJDnV7vWdg16ytzSFSsUntYUzctpVu9sUlEnOXUGEz/k0sNGHBfBN5J/eFA4rTlQztn9GaVXwuYND/a7/3QMqyhnlQuLh/k1derP/kGS/VAiSGriyuMX8RsPNEF0qGoPm3n26g8VBs2oj5SEaxjwM6OI3MAB+0vnZRP0Q4E8GY68E4S9q4ky9Ov4R/sw0KJEN+m7mJgHsqdUi5hD0URfbfhmHRJ80zXF/piG27lmXYMcL5tDBN70Y1Jey091XzPWU9ZbYzQkZVj8Bohaq19xLnJfzgPI4snwhTbgvqzesRFkVGh29ZkFlfhA4z/XgT5qNPYxzhXXuNpeU7lRVaxkLjfaDfHxcBUu7Pni08O3Se/sw7khA8nCUp0HdEvi6dpW6DIVfjmt09sGwnNHlW0uz3Vbgw4W7hK/rFslx7TSH9mtg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rossTenant-AuthSource: AS8PR04MB8676.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2025 05:41:16.8765 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yKEqT2i5CLHtSPW8zdkVkuZY/S2yaiJNBgZeyCnGkCAOgwg6QbQ1FdiD+T8r15Fini92kJVorlDOaDwTEi4SDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8145 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250402_224120_412472_B5F657B5 X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add some enhancements for i.MX95 PCIe
|
expand
|
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index a2d65dc88b66..abaf6b13a8d5 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -48,6 +48,8 @@ #define IMX95_PCIE_SS_RW_REG_0 0xf0 #define IMX95_PCIE_REF_CLKEN BIT(23) #define IMX95_PCIE_PHY_CR_PARA_SEL BIT(9) +#define IMX95_PCIE_SS_RW_REG_1 0xf4 +#define IMX95_PCIE_SYS_AUX_PWR_DET BIT(31) #define IMX95_PE0_GEN_CTRL_1 0x1050 #define IMX95_PCIE_DEVICE_TYPE GENMASK(3, 0) @@ -227,6 +229,19 @@ static unsigned int imx_pcie_grp_offset(const struct imx_pcie *imx_pcie) static int imx95_pcie_init_phy(struct imx_pcie *imx_pcie) { + /* + * ERR051624: The Controller Without Vaux Cannot Exit L23 Ready + * Through Beacon or PERST# De-assertion + * + * When the auxiliary power is not available, the controller + * cannot exit from L23 Ready with beacon or PERST# de-assertion + * when main power is not removed. + * + * Workaround: Set SS_RW_REG_1[SYS_AUX_PWR_DET] to 1. + */ + regmap_set_bits(imx_pcie->iomuxc_gpr, IMX95_PCIE_SS_RW_REG_1, + IMX95_PCIE_SYS_AUX_PWR_DET); + regmap_update_bits(imx_pcie->iomuxc_gpr, IMX95_PCIE_SS_RW_REG_0, IMX95_PCIE_PHY_CR_PARA_SEL,