From patchwork Tue Feb 27 21:47:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2983414dyb; Tue, 27 Feb 2024 13:48:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUgIZHBsw/rYHJQBTVi2JsCRcTz6vg21WRS3/ojZbzPDa848aMH5QygpT08JAt9vAhR9Z8E8dwiKWkRFaa2qoUBgKZ6dw== X-Google-Smtp-Source: AGHT+IH/RZ4ms0d6QMBTDJkMxjPcn7BAEy5UP6AFYtDjiPvykEXqeuVfFggjDP/s7ka05D1f5vXu X-Received: by 2002:a2e:990d:0:b0:2d2:ab6a:e694 with SMTP id v13-20020a2e990d000000b002d2ab6ae694mr1044858lji.7.1709070523825; Tue, 27 Feb 2024 13:48:43 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z33-20020a509e24000000b00565cf08c22asi1032943ede.24.2024.02.27.13.48.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:48:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=FTaZuuG6; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-84065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84065-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 429FF1F268B7 for ; Tue, 27 Feb 2024 21:48:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E29FA153BD5; Tue, 27 Feb 2024 21:47:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="FTaZuuG6" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) (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 525E015098B; Tue, 27 Feb 2024 21:47:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709070469; cv=fail; b=LoGPYCnN5w9Q82Edu6OUzeYOWWh0QkRitNHvcu7WhxuKngk+mRSOM0h9qmtZ20tLIJF7lXK08/gZ0d27LuO7XWjEf3RGeZh1xEp2kgOifccb+GAW7Fpj1BB9EgEy5CNiTEqJZkqeqqgK3y86Q8+EfXqqPBD2OJLuZzQE1QHFvFc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709070469; c=relaxed/simple; bh=jax7w3YeSKyiyCNa2W/Ldiw1ax01/mOleY5P8AfYqYU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=GaFYXeRNZnveUVWGvtU4VvKki75quUcYyZEUYN7co9gICyDkFZHGpjN/zCQMo4sgvQvvdFTaLGKMZX+ENa72YOGSMny3Zwt7qfFEjhz2Wib+vVkC6isYQbHAslUXxNLiGGbuUXK1dZZ6eC/YR3xtORxPIEHfMNzIEJB6hE+F7yA= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=FTaZuuG6; arc=fail smtp.client-ip=40.107.21.48 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EVfeVMOwsPlalH0Y4uuzyuLztoH674GDafu7e1w+g3F806gZj6ZnZXkPIIrDptSViBtsNqCr+b0Jz+H2HHfkeRQ8mlynGG7pBijSOneTXoSZXDCs0EmrSQTGfCBGmUIBeSSNQOmKA7C650TYzchrRFgO7aRcOWSc4ZmgA9B8GXi2FA45rPlMG8m6P6HK3KVW/BZVQaHWdeuYzPnYDZ2GKNx0uKSijON7DKTTvBNFRw70M53/cDJOTd3Od0ALbBeY7oMf0fJgi/LXJhTBN6l8ThGj13xiH0fPKmZN7B7WA9Tz79oY9L8VpIsLUWGaFjutd3B2cOwCnG0EkJ2OfBrAMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=WDHFWrjCyoKXsLP6sV2GTSZH9KE24ao5w8wAVmSeCgo=; b=bsK7oMcGPEgk30Q8+DPYpxOX0pxSFjxuFjnd8g1HgvFlf5RSQttpfUFMaF09xCQjFkzBEm6m9ptPkD0tjkdtlZGQoQt033+tEvERgxKTxMCzzvvqJfBgaAb7crKTolvL2SoY5IMqcW7nIst7awCTL+/Np1FgwfqlgVhvi/0Q5n7xoiZGJVAxZ4SsWeMcGgZwJ6k7BFOXqTbOXPu6i6qCdpYtXZwSc2eQSrashoIPsSLWv1WeNEI1pi2L9qr1FqqCiKAxhSOlGHKarcTs2kZdKPZkz9c6ib4PLxpeF4hGw5RXDf/ciOaXUkiI/kNxAc2GGCWorS3Q9Fo+krDmZUV/Fg== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WDHFWrjCyoKXsLP6sV2GTSZH9KE24ao5w8wAVmSeCgo=; b=FTaZuuG6lmeyj/5huhCYGQCPwQjo5ovyS697D9Z4T7sTRAa+tDuHZFrziSl3elg/Lh8AClQNxAkSbw9I2GIMjfXNPtbku7YRRiFWBmaf+xUuYRg49O1BM2aGP8z5qm1p1f6hZ2GExAUuIRsw3p1CWYvryBHvC9fxCXfFAZAJz6w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VI1PR04MB7056.eurprd04.prod.outlook.com (2603:10a6:800:12c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Tue, 27 Feb 2024 21:47:43 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Tue, 27 Feb 2024 21:47:42 +0000 From: Frank Li Date: Tue, 27 Feb 2024 16:47:09 -0500 Subject: [PATCH 2/6] PCI: imx6: Rename pci-imx6.c and PCI_IMX6 config Message-Id: <20240227-pci2_upstream-v1-2-b952f8333606@nxp.com> References: <20240227-pci2_upstream-v1-0-b952f8333606@nxp.com> In-Reply-To: <20240227-pci2_upstream-v1-0-b952f8333606@nxp.com> To: Richard Zhu , Lucas Stach , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Liam Girdwood , Mark Brown Cc: linux-pci@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709070448; l=2678; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=jax7w3YeSKyiyCNa2W/Ldiw1ax01/mOleY5P8AfYqYU=; b=CHy2ODfXM0CDTDa81x8SaQEkbhra+ZQ6KXeSguPvo8k2lQH1HxPL6HoPrWTvOIJx6vaQ8TKw8 09DTverntT6BJA6WqowkR8y+3wSRrXoQ8o6XTShVG1B7V9Q1vEeHcvk X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR11CA0050.namprd11.prod.outlook.com (2603:10b6:a03:80::27) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI1PR04MB7056:EE_ X-MS-Office365-Filtering-Correlation-Id: c536a716-2f4b-47ab-f048-08dc37ddb9c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q1hxDHUqp23am1gocVijphtui+huWJWMfcRXaUUKfKHTi8bz2TtphSthEigTsNSHeZS5f71YDia5koq7F6R8VyXkzdXrLQ4XMJNSfRokThAKL32LuLdWAcCCau64dNwmI0ir697rkBJJLc1cs3okYQVRbn9cFvomRp1dN7JEybjfWA1SSevZFLJDkqpuxKAjI9b/JbRH0NgEPgQVRNSNu7S3/dTNf4aOaDa7qEnFAImPsCe9XtWB4S2FeI9ZfBpOUFcyPaSeBbDZ+apmcD0TMWv6+oW11Ber9iITQnSGB+Hz7DVpLH8MXRfzYm9Oc85WF73UN+nGmi9vCp5srPOL+HGTug0SEgryO0uPRUIgdx5C6HZfM/E4FPIrQ/XXwIS50QMui+sMj7rEp8EtqUTQV2aZttLRvsDobT5mqnWiS3bMuZ5ThI2/U/txnXUkABAmp39Hl+56442IEb0+6kVDbyqrJdQ8MfIjRuijBnP0ZZhtPgYjow8OmbHb8CAAW+P+bb7ljQUi7XO5ytGSCz61uKsuh9MPDcIYHUrBmR9Ob12GfuJGYOUYiXtU+L9YT/r23rzWUIkU3EdNbIwQGKNAYIOQKhZo/70C/KqJ4iDGXNk+jjCSxCzxUUosoMiJST50luXFKGODsvuniShZIrpbvjQi2+vrasEotR9tK4qBOvxowuWt8T/nlznVymd5nN8JlEqMTvSHT+cHV2TBGdTKlZpb6Y5ZBIUkv4sRgD4lG6Q= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Zgi547dEXsNwcKR1KTk7Zz46Rgvu?= =?utf-8?q?LNixfu0wXqjbbXKpRMGt+wp7gJfjEH6eoHGFA7mgVwZslHztvt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xCyal?= =?utf-8?q?XPfWJEaaJEfAIpX4jW59tfjHSCSoZy0mWm43KZn/fPS9fqVlyH+1XEi7YnHDs2T3o?= =?utf-8?q?hy1X1JCwjcvICcs9Z8gDAWBrRWTunyQTh9Wa/6UNdRAKIZC5xEdU91KyBjgKJdV70?= =?utf-8?q?sGR/b4ah+cqLgNw/kCbqbMing8d2C9hEJBbN61x/QyNntqJhsZizROhvh3IzAyZZH?= =?utf-8?q?xD0x46NQIynaosn+Vt+l227Uv4wHKw98MGxKWNpi91daTII2B8XrcvzbNzK3JO5Nx?= =?utf-8?q?eaa8FkSuJcGUFWHCLPJjNntJNhzUckbE99Rfpc+vyiVgd5wGyMC6j8G6Z5y6axRgC?= =?utf-8?q?FBdWuDHB9uJq8XsHC6snaAOPXwnCA55R6xUwy0UbzJw9AGL6C8vYyvQ8A2Qr0K4BT?= =?utf-8?q?lbk7cszCZPWtyHRTTV4zXpAOsh6prt/Vp5acLNPrOf4dJzmfLU2fptVQ1PwS5hN1d?= =?utf-8?q?KPZTIVjJlbYNnGRSFjnLYB8ye7pshI5h4M9fYCwT1nDMhR28VTy4Bq/lwFsFZ75IW?= =?utf-8?q?pz/V66K5YqZdlX1efOJuCNnhVnfz0L45TcJ7Bz6o9+5vLGC0vRsOOp26tden2+gvM?= =?utf-8?q?OotMgyNVR/yO?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c536a716-2f4b-47ab-f048-08dc37ddb9c9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 21:47:42.5202 (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: acf8WSXHnt8hf6ALopobdEkdtfCutiGNzgmNV0tvAoDCvN+tW8CtbMfbRkm21/2bAkQBsV5wmfpxWFeBDRVEkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7056 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792090333398123021 X-GMAIL-MSGID: 1792090333398123021 pci-imx6.c and PCI_IMX6 actuall for all i.MX chips (i.MX6x, i.MX7x, i.MX8x, i.MX9x). Remove '6' to avoid confuse. Signed-off-by: Frank Li --- drivers/pci/controller/dwc/Kconfig | 14 +++++++------- drivers/pci/controller/dwc/Makefile | 2 +- drivers/pci/controller/dwc/{pci-imx6.c => pci-imx.c} | 0 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig index 8afacc90c63b8..647ce302e5ebb 100644 --- a/drivers/pci/controller/dwc/Kconfig +++ b/drivers/pci/controller/dwc/Kconfig @@ -70,27 +70,27 @@ config PCIE_BT1 Enables support for the PCIe controller in the Baikal-T1 SoC to work in host mode. It's based on the Synopsys DWC PCIe v4.60a IP-core. -config PCI_IMX6 +config PCI_IMX bool -config PCI_IMX6_HOST - bool "Freescale i.MX6/7/8 PCIe controller (host mode)" +config PCI_IMX_HOST + bool "Freescale i.MX PCIe controller (host mode)" depends on ARCH_MXC || COMPILE_TEST depends on PCI_MSI select PCIE_DW_HOST - select PCI_IMX6 + select PCI_IMX help Enables support for the PCIe controller in the i.MX SoCs to work in Root Complex mode. The PCI controller on i.MX is based on DesignWare hardware and therefore the driver re-uses the DesignWare core functions to implement the driver. -config PCI_IMX6_EP - bool "Freescale i.MX6/7/8 PCIe controller (endpoint mode)" +config PCI_IMX_EP + bool "Freescale i.MX PCIe controller (endpoint mode)" depends on ARCH_MXC || COMPILE_TEST depends on PCI_ENDPOINT select PCIE_DW_EP - select PCI_IMX6 + select PCI_IMX help Enables support for the PCIe controller in the i.MX SoCs to work in endpoint mode. The PCI controller on i.MX is based diff --git a/drivers/pci/controller/dwc/Makefile b/drivers/pci/controller/dwc/Makefile index bac103faa5237..7084e615b2774 100644 --- a/drivers/pci/controller/dwc/Makefile +++ b/drivers/pci/controller/dwc/Makefile @@ -7,7 +7,7 @@ obj-$(CONFIG_PCIE_BT1) += pcie-bt1.o obj-$(CONFIG_PCI_DRA7XX) += pci-dra7xx.o obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o obj-$(CONFIG_PCIE_FU740) += pcie-fu740.o -obj-$(CONFIG_PCI_IMX6) += pci-imx6.o +obj-$(CONFIG_PCI_IMX) += pci-imx.o obj-$(CONFIG_PCIE_SPEAR13XX) += pcie-spear13xx.o obj-$(CONFIG_PCI_KEYSTONE) += pci-keystone.o obj-$(CONFIG_PCI_LAYERSCAPE) += pci-layerscape.o diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx.c similarity index 100% rename from drivers/pci/controller/dwc/pci-imx6.c rename to drivers/pci/controller/dwc/pci-imx.c