Message ID | 20241126075702.4099164-10-hongxing.zhu@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011033.outbound.protection.outlook.com [52.101.70.33]) (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 299811CEAA3 for <imx@lists.linux.dev>; Tue, 26 Nov 2024 07:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.33 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732607930; cv=fail; b=FBmID/MkK/10NBm7aLa83tVCSkNzmKXnAMzpdl9DAhfTIEEd5kkp8zTvDH/Koo0Wu6fv93xb8umC6XOkoRf+6uPCf9XDxGKRhxXcrZX/co6/BQ/bj9U4NxdA5IWchcwDYrmy7EjPNCiv4UY3uz5hV0DjNG5W98DdiLvdMTjTDvg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732607930; c=relaxed/simple; bh=KV4lu7ynFYwyZ5cB4MgqYdWwymlQWjdGCrAUVQ5abFE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=RkWVEzrQu7DQexHOPwzXWfxXpqjDVeps9+VB6gEeiXV++1im7VOUbEWh8DHPTnFn5vHHNsJfv73Ifg0/5li/RKF+fOw7KoKmL3aHMEOPUJz0SLh8VOpn5xBa4u41zSxwM4t9KzSu37btE78kCC5HbxtkMOxUz69wsDaNa/bUHoM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=lLj46h3e; arc=fail smtp.client-ip=52.101.70.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="lLj46h3e" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VO4viJuz00Z3pKfMlbw/yF7WujeTbNE4VzMLB3PsWz7lN3xsm5d5yFyAlYoOt8Y51YqELYgKlUE7YH8c+FxaI4A1+f1NNVj0abydhtewjlKnG1O+w93lWnwx/VYwfEF93kXtHpCKTPPvKi0yjnaHo5oXQxGQZjILOXH15ND32n9XCrTevbQTeei9XKjXy8rrX+TU7/fawWUzMK2MwCq9LuqYll/Bu+pnsTR92FhnVDmIgqyboRhE2jbT8uotzlKh4OCTNZxrmgcRJo5QfBQl5goyLlKpLJ3/GTwnqnT/3E2xv7eQicSXg4eG3jOrxkAcb89OddRRD8ZMWUi/82P5+A== 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=cpOhGQcAawMozKbRyjDWd0TWIGF9Mne0xxsU7xd3RJs=; b=aRX9VvT/F+pmheAS9qoDu9TbNQMLgReRi7PLVeYjqcadWOmCH5CvOUoAJ1GkY9+ni26kTm9IBmgfRh9RKhsC3pPyFwDNmnqeTwHHImXDzNNkKdg9q2jq46cd8TMx/g992m2XpY6WgYLOS/pDU+MipHDbOg1Z02HxDGummr4NXhjZNOHsu4PnxIVRQ/pvBP22k9hsFYGQf9f0dXO+vcJvvEaKDzEX2AksdRTozcSWszWtSz7CVkFEPQADfp+ymb9R+iL7OgQnMMPO1iAlnfGgT8UqYdCczpKJ9LLsJIXvSXgXLVdNY+bd/Zm5ACBYNciPv892s1xVlkhV+rPUOenULQ== 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=cpOhGQcAawMozKbRyjDWd0TWIGF9Mne0xxsU7xd3RJs=; b=lLj46h3eOy8RNiDviRDY9W/PYWh+C/tW1EoOpV/HDYm8v9aE4o15JXtUTOJ4i6YsQLU54zSv+mzuZzT1Gh5ULklrX8tqqRjdLqgFWvVps9hKfTA4rtqs+tTOy0Vp4ggwY0CrXL0Zv8duOngF9HUbb1V1Fo5o9fi/NhCzVBQeAjz1QPWA4SzG+7YByfe54Ls3pcQ+oAGln07sqLMTO/5QcsRWMwk/+8W+krZI+9TPbl7iarrf5c9j1R9ShAKmNAIh/0xum32IacqgM8aJv97gEXWb7RwpI146yMos0b4vnhma/0+cVvEVsg+mFokrez4U/yhH8upQBL9EQ92lUK0+fg== 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 PAXPR04MB8489.eurprd04.prod.outlook.com (2603:10a6:102:1dd::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Tue, 26 Nov 2024 07:58:46 +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.8182.019; Tue, 26 Nov 2024 07:58:46 +0000 From: Richard Zhu <hongxing.zhu@nxp.com> To: l.stach@pengutronix.de, bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, manivannan.sadhasivam@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, frank.li@nxp.com, s.hauer@pengutronix.de, festevam@gmail.com Cc: imx@lists.linux.dev, kernel@pengutronix.de, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Zhu <hongxing.zhu@nxp.com>, Frank Li <Frank.Li@nxp.com> Subject: [PATCH v7 09/10] PCI: imx6: Add i.MX8MQ i.MX8Q and i.MX95 PM support Date: Tue, 26 Nov 2024 15:57:01 +0800 Message-Id: <20241126075702.4099164-10-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20241126075702.4099164-1-hongxing.zhu@nxp.com> References: <20241126075702.4099164-1-hongxing.zhu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) To AS8PR04MB8676.eurprd04.prod.outlook.com (2603:10a6:20b:42b::10) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8676:EE_|PAXPR04MB8489:EE_ X-MS-Office365-Filtering-Correlation-Id: 1cf81fa9-812c-4412-9f40-08dd0df02742 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: 55qdYDCGMOLNjS80w2i3Jpx/B99ar0VUVP9xF0kIwjHcKAT2PTwbAdvqFlHyM7H7u1nSwY3Av1rVev/zOjpjOo0liBpliw7uK4ZXP0d0ClOummWU2BMKI+7/FmxHT8pdR4vJMR/OM2LXHvMadzi46GR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FapkIRTwo1Oe6fS8WQj4+2uIRGf6tgSgfrzrlH2g0DkaijCS/UjpNUzzCKoG9ZyR4+zb0QhNLbiO2rGCQeku4HF0aBPwpzHGplKGwQ8bNJ+tEJKW9e5ZNmQfsuo6NWmZACogqLqI2fS4HAWypoGIPZg4z9FDFqL4DRkZs+ttlraJfbS+zEAFNzdJFE00WHKYFC+ZYm9i2joBpKfS3Tac= 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)(52116014)(7416014)(376014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aZeSyj6kLIS2zQ7qz2gaA8vMQNJC1x5axyOK6A2G+vw423iwj98SRWOHlojaJ9z47kvfYyHmOZxkHqDNKjd5RzPG2s52rnM6tDva0/8R9+MfPbk7ZBc2+COoJLLemttTTYvDf6p198REScIT7GynJNkufZFcZMhbaPXxSZ7T6v/CMtw6agFkJz3jDZZHA2o6o+zxF7DPI/ocPA9lqwkfPQy3x+NTRiLZkdbB2cQSTRVs26EsRAs53LGb7s+jLICF7UwmfwhoCWNZMVRi32UAkM15GaFohZ8sEfo2YBCZQy7ABDc+KlslEyX2gNTV3B8yo0qGk9vMWY/f3sspuaBFbfo+lVwj3Dkkr6YY1OE3HP3qfXzM84p8oKfiR4UAPH9xhBm6J+Q38sNacIc2sn8uKhF6A9qNHHzHNuMFZZbV+lB7MFfjmhEbk/zWnm4vBokOaRDJMBYdWAjxMV8vbsahToJWpnjzo/868GB+xHG/wyGG58NT0xVlLzc77ObKBBOB7T6tr7mp+zx12YP7u3D8IpfUu/SFW1Rg/NKBmn+5RI6DBX3NofyasLhjE9QEl9KP3W0lkB5q9iifUhAi5kqpKlRa2SkyPvToFxCeElgTSNjvmKfN4e/pToCm10CjZL3fon9Me/eFjsTq0Jb6vkYJkz+3hSH0+CKsvkXTqxa1WFU19PyC/98y9w/+Zj2qCziFf9juzQ0ftnR22VRKJ5HDYU3Q7ILwns4uXxvcKkoar7mvDHxCx/+HOo/h50WbHcPgi00vBV8F4sVnTo6Sm14WPiI17YrzZwoeDo4SpQnDjCU4/TT9iOoJk6rAYd6GCrLMTFm+fWElFVq7bsmv1EDgkNOYVG3qI4Au19hCF155uPAyAC765jcsjLghvUWn+sk/8AlZfFVAP14pGligC22m+Y8+jTesuRqQpC1KcPV59ulLhSejS4ld/PGS9SElolQlK2MJRBjLei+NkgoLNMwLQvG5SF7rOcynLtWPQDQpUkdOjlirdDXYyw6Zcc/1xqvCpdd8gMw6Vsdl9toVgEb9gKYPWZO0a50f5PQx/ZuYvUBI7lbAu+VHCQ66gS8QVxNWmywIJGkzpute7ZuDwtXhgRKGFOwzeCJ5jGiWX+J1ngroQQ9AicQ4zFxuw0KsDMPnck1dXobWFB1cl+KCs1scMu+bPCH74mTVSjNBlL6fLXNlPZD+3nok0fdqllZjL9DGrCCR3lNurGv9zehEizWCFLtEWVPK68Soc3WY2hvdlsbHVaLRjF5hpkH6CZkI8KFlhDfGTc66buyw92lpOm3QWORKnz/RkVsWECno1WDCCo2WoYhJujLtRZ5ohlgMw0fpOB4akXnHVOpUcW4ouuDH6+BIA9xtvCV5Trk3gs6AH32giAeQ5Xk/O8NkI46Av+VluVVV6qNYMgLiDNWkTzAhyDxEywDoZCJDp6ROI3MgGFeCVnFq3db0/F4NvLy6f8jY6Ir41Ag7F9qxdCNncHtDd1oK7wdpg7aMBo3B+4CytEcG+pZpnmtLhP5Cy804LHk4Eb2nE4NM7GbEibItUWjksaRks4nIkqN07lf6HJDa2FcgLPbHaoo0WUOv7iYc2Siy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1cf81fa9-812c-4412-9f40-08dd0df02742 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8676.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 07:58:46.0864 (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: yv+19qh0eJM9VzPquUc7UNZ62jaa23xG6aBqM9h6UZ5l6n5EMQl1/Da4ZsciRuHN1ecLuk/rAN4MTP5TD9GLaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8489 |
Series |
A bunch of changes to refine i.MX PCIe driver
|
expand
|
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 87dac4ac9d10..852b34572bb8 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -1527,7 +1527,8 @@ static const struct imx_pcie_drvdata drvdata[] = { [IMX8MQ] = { .variant = IMX8MQ, .flags = IMX_PCIE_FLAG_HAS_APP_RESET | - IMX_PCIE_FLAG_HAS_PHY_RESET, + IMX_PCIE_FLAG_HAS_PHY_RESET | + IMX_PCIE_FLAG_SUPPORTS_SUSPEND, .gpr = "fsl,imx8mq-iomuxc-gpr", .clk_names = imx8mq_clks, .clks_cnt = ARRAY_SIZE(imx8mq_clks), @@ -1564,13 +1565,15 @@ static const struct imx_pcie_drvdata drvdata[] = { }, [IMX8Q] = { .variant = IMX8Q, - .flags = IMX_PCIE_FLAG_HAS_PHYDRV, + .flags = IMX_PCIE_FLAG_HAS_PHYDRV | + IMX_PCIE_FLAG_SUPPORTS_SUSPEND, .clk_names = imx8q_clks, .clks_cnt = ARRAY_SIZE(imx8q_clks), }, [IMX95] = { .variant = IMX95, - .flags = IMX_PCIE_FLAG_HAS_SERDES, + .flags = IMX_PCIE_FLAG_HAS_SERDES | + IMX_PCIE_FLAG_SUPPORTS_SUSPEND, .clk_names = imx95_clks, .clks_cnt = ARRAY_SIZE(imx95_clks), .clks_optional_cnt = 1,