Message ID | 20231206155903.566194-1-Frank.Li@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4200332vqy; Wed, 6 Dec 2023 07:59:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0atfQ49AN5bR2QUzoEcyAvyFlu910wawnyBexe1uimkh72vqQUagSMR4QBMlsJJmcQZIM X-Received: by 2002:a17:902:ce84:b0:1d0:6ffd:8377 with SMTP id f4-20020a170902ce8400b001d06ffd8377mr796570plg.130.1701878374627; Wed, 06 Dec 2023 07:59:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701878374; cv=pass; d=google.com; s=arc-20160816; b=WmuuWkIvBlZ3Lj3oL/TOgLJ1i9lyRwclTuhYwAxIQofZPW0MnrPWInGPJFYipLrU3a 2Jx0SeTwhG7HqZ+MVwa5lNyMcOWW/f9MIilaF9KLEC11TKRoarMNjBLaOM570EsPxELM 9tSf42/zxJ1B3RmiiIYLzFzxTSlfgjVxWHs+Sy2hI4+RhYgEP58QFgQr1uXjd+uOSTMo f2WXdQWdkVwuHN5IbgHKUZPQf4PS6jjnoAtAeLpi2p5qLvZVWzEaj2dFU9+Wy9/zAAnF htqsVoMwKMUhLcsgzjQObP21FulF8i+wN8Rnzk88saB/B8zHOGbrERryz2KyZm+Q3+bF 2OVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:to:from:dkim-signature; bh=jviUz8KcWIzmXgQFJ9JrfZ9d5CCv5eulcWs9kGqJk68=; fh=TLn+aKtUI93OeLZUttSlyi8283d9oHbZiRsU+xDtwCA=; b=AzRVeraZjk4aUkB30XuMkh/dd4po/5a6S6YCPEvSfWF7Hoz5gZi4OAcyrJ+OUPD6j/ 29VwyaObRVPoGEh9+gRXzDcZTmsZwgnoP1xDtp6onM+ueADuSZPCU0u93Jfe+DVB5L5T 9AfXrxW4+8tDNkNdFt6SsCWe6MJiCkB7uVMCmaRbOQNg9aQ6teOOA62mi1tmq8c3v8jJ CHmWqMPzECtT3AlgT+uUysK2s62BqhHwR3FfHFPsYB9PVOV/afVu/5jvBTYpZAY4CXht XRUVIStUqPrDPnN0A0zKpnAuuDAYo5GpYlWDYZ9AgFSqR1i+A7kcd87pnwa4Nl/CTvJr axGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=oDVjupvD; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h11-20020a170902f54b00b001d0029879d0si8662387plf.407.2023.12.06.07.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=oDVjupvD; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 27E1D8029854; Wed, 6 Dec 2023 07:59:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379474AbjLFP7X (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 10:59:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379449AbjLFP7V (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 10:59:21 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2082.outbound.protection.outlook.com [40.107.21.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5C51A5; Wed, 6 Dec 2023 07:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V5L6VjDZDeki3u8Uctqob4cgyCnX9QYUCBzoCwlhz9by7CVyuPqGqx4vWSveiiWXyPEBGBKsR8WfIAWkJJgzN6wzX5Sr79pCAEM27oQQDr+P2CihmkaozFBJBaRvN4UnpbB5qim+wmmI7uYucS7MDUgSlN9fKjfPeU23TeKbl4NYZPWN3g851EkGqk6QLq0ulWmAJ7VQVtelw8Bd7nu3yvfjuwNbJZ5B6rvn3vvTU6x7qeijk+DHeYQfrqGasfgmeAx7giLuJZxCVV0nXioQQf4NfPRewCLrjAx7LDAuHz1gpuW2Q4wTZXM+K31Eed9TfSAKdr2sUnQ9e0JHYHoAnQ== 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=jviUz8KcWIzmXgQFJ9JrfZ9d5CCv5eulcWs9kGqJk68=; b=bYtkdJBnWZJhRrLqWpljxSQyF6HFE4kN8v3Bxtl3VOB6vczbjP4h4sNdN/tjjhEBJSocLgUG3EQYhorB/krI5QeSJqTfW3cwBXe1cA4wCcLOLq9+TzyWcfmc1Fl/l4Lt5EpaAKAgNfQ58qRrqOSfAPQdpW/vcDLOy7itZtVcSY/NqAENIGV7+Lj1G1wULrUFLoba5mlnMr6tU5N8HlVbdbG+RnlW6wF/4LcnK1cfW5YNkPc3C0R7nhUcFcnEZAbe83vuQrXMlF/J/uHrEx48jp4wDPfCDU1pDuErarOWqhCzt6EJK+RP1KeaGRZyavQB1J/Bezmxz+O17h0oWdekog== 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=jviUz8KcWIzmXgQFJ9JrfZ9d5CCv5eulcWs9kGqJk68=; b=oDVjupvDJjaGoaef8OvO5hgPS56KjMWsPbApSTGdGNNu2B++pGyb5GZ4yctum3Tvs27dzpfOLH1t9ku+4Bw1j7rtmEiN70/yTYZPE2Bj2xgk5DoykBhE7x2tn1xO7aCdcW2+ondW24FaEwiCVUgFc/kRnf9lygXY/I843yAnF54= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DB9PR04MB8123.eurprd04.prod.outlook.com (2603:10a6:10:243::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.24; Wed, 6 Dec 2023 15:59:24 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%6]) with mapi id 15.20.7068.022; Wed, 6 Dec 2023 15:59:23 +0000 From: Frank Li <Frank.Li@nxp.com> To: imx@lists.linux.dev, Richard Zhu <hongxing.zhu@nxp.com>, Lucas Stach <l.stach@pengutronix.de>, Bjorn Helgaas <bhelgaas@google.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= <kw@linux.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-pci@vger.kernel.org (open list:PCI DRIVER FOR IMX6), linux-arm-kernel@lists.infradead.org (moderated list:PCI DRIVER FOR IMX6), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 0/9] PCI: imx6: Clean up and add imx95 pci support Date: Wed, 6 Dec 2023 10:58:54 -0500 Message-Id: <20231206155903.566194-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR21CA0015.namprd21.prod.outlook.com (2603:10b6:a03:114::25) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DB9PR04MB8123:EE_ X-MS-Office365-Filtering-Correlation-Id: e9acbfed-3f47-41f7-909b-08dbf67450c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cor1PTRSyNkNGMLAei7rux54q87NuMtQ4P7MY9akmE6OpQUm7JhcgxM99/BmUmSgmULceCX6el1hgEs5/pYnmjms6EinYYZsEsxjpJiW3VhZqAfnytrOPSPRvzP80f4c8FJQKWC4rWx5GLHmKdMIedpEtO0dERW1NB25ozPAgTUTfydC6TzUIXnqPjidGVJKAOnCDGZ9yxiegDJRdo1P8V2w0+IPrx7KMVjJ5oabxupDYsSXd0HA8Z9sW07yn3gZzE5iEdvKBFgXhNaViGQJFGyu0bIWbHNTT/0yPtEsEY5mFVmNHEojGbBeGZ+512Jj264tUiBbCgmo5flYb4lMiVCDxVxMPWu5sFii6OklT+PxIsSv0cHC+9nUZi20y2ZT0e53m+Du5MeRYeZRGdjp+kb4hYlmVf39Bdq47Wa5GlP6Q4KS9IvywqQp0LvzJmnKpqQIDDwtZsSaB8gyo4Af9K09yFIGP+bSYA4rxA03oQ3xtSQErlgIXnDK6xTTsrvXPRNnhGO0kSVEHDwzZuadDy692vjQL5Zx0ZDscfcKK+euOwd5Z/gBTiz3hN0Mzhqy6eQvNdjBo29nP4B+8b0Nzh6dqq1ICok1rKzUmPM0LAXxtZP29PfXDVekGwogvRqrktiE5JZlCq0gfkARfOM7rA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(376002)(136003)(396003)(346002)(366004)(230922051799003)(1800799012)(451199024)(186009)(64100799003)(1076003)(41300700001)(83380400001)(36756003)(6666004)(52116002)(6506007)(2616005)(26005)(6512007)(478600001)(4744005)(921008)(38350700005)(6486002)(7416002)(316002)(66946007)(66556008)(66476007)(86362001)(38100700002)(110136005)(2906002)(8936002)(8676002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eyHhdGZsLkO33Y6Ki9Qlzt2vFuj1H3ZnymZdJx+9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KhK2CW5em3I+KrKuwVHb27tZ8A0LNb6n4tuy9xOnTEQZMnzwYsU5bnYuT1oS005JY48nv26NK/We46ktR4aNa+oX9W4tGgJ1lspoUZVLM1bzsjH1ebVpPsuTsfuMQKLZMslN/M7JwasU8bZtjWrKiXdbIGiS/yhTSd2xwYDsaHFGLa9Lirm6/1xpZrvUYnvt9JaXuDfppwSERWVLWfXy708thE7ppE/yZvglqC19h55kn7CvCUOxdPX2SONtH6dVeBDuuztx8R3TpTGrRGNJxDjzgYhsV56VHAzRh4RGJCieU5z67wJ2brULzY/dkBIkPKUBx6Dhh4bVlc+ZDB6cz34Q4KkaNrvtYh4pKBbiXS7y8O6CiPE4CIlvkrl9XURqDsIF6xDmro90XS26CgEpUnwEC8Dp+sn8L63wOieNqfYHQqz5dJ1BkwG5znyl/8n8/tggrE= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9acbfed-3f47-41f7-909b-08dbf67450c7 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2023 15:59:23.8230 (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: xuAlNpAoS674dJ68XlXl3XrSiCaLHttn0CQ2BGrL54hDrkpxRHgYqmNlhFp2nHAFjCpp9epqGwuYCBVJJN75LA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8123 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 07:59:32 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784548818381239637 X-GMAIL-MSGID: 1784548818381239637 |
Series |
PCI: imx6: Clean up and add imx95 pci support
|
|
Message
Frank Li
Dec. 6, 2023, 3:58 p.m. UTC
first 6 patches use drvdata: flags to simplify some switch-case code. Improve maintaince and easy to read code. Then add imx95 basic pci host function. @richard and #shenwei This just precode, please review it as draft ideas. Frank Li (8): PCI: imx6: Simplify clock handling by using HAS_CLK_* bitmask PCI: imx6: Simplify phy handling by using by using IMX6_PCIE_FLAG_HAS_PHY PCI: imx6: Simplify reset handling by using by using *_FLAG_HAS_*_RESET PCI: imx6: Using "linux,pci-domain" as slot ID PCI: imx6: Simplify ltssm_enable() by using ltssm_off and ltssm_mask PCI: imx6: Simplify configure_type() by using mode_off and mode_mask PCI: imx6: Simplify switch-case logic by involve init_phy callback PCI: imx6: Add iMX95 PCIe support Richard Zhu (1): dt-bindings: imx6q-pcie: Add imx95 pcie compatible string .../bindings/pci/fsl,imx6q-pcie.yaml | 1 + drivers/pci/controller/dwc/pci-imx6.c | 513 ++++++++++-------- 2 files changed, 302 insertions(+), 212 deletions(-)