Message ID | 20231207193430.431994-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 r17csp5018345vqy; Thu, 7 Dec 2023 11:35:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTzaqYViFtLYFXhQ2CHveNHHf4IFdmfZboi9ZqmhHJq2oaM02rQno0wlGjbOdaZIkOgw0i X-Received: by 2002:a17:90b:384f:b0:286:d13d:b2ee with SMTP id nl15-20020a17090b384f00b00286d13db2eemr2556551pjb.13.1701977702533; Thu, 07 Dec 2023 11:35:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701977702; cv=pass; d=google.com; s=arc-20160816; b=UlQQpGf9iE9zstvJ9+82Q/5fLbQYFSm33j7EOX/q0DvtjWMHwQ9yvpR1EA5meVcKSx qXYj/3rvhtMaQZbvTrug+vWpXFWOYenNOd4BVFOMcGgVKiqUZMztpXZRS+UawYFMOfCO yZl0C8b3RuUKy19Qtss6VdUlMID5olhKYYC7UP+eFeGoERkDC09i0qhuh1vHaPD2YFZs wFeUoApoUl/rohorRNxw3urZdRoZnk2lBnf/n0UAjjt1mL1aj55AQn9smN4BPaFfK+nH A5LnTMzjRa6CfdH0Lc6N7se8qk4jd9QnvIf31+bw3sLU5NvXPUax8CwdDrWK4Gl1cdcm 2hxA== 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:cc:to:from:dkim-signature; bh=uNkSQwzKXGQp6yi0kvE24U3kEqTFmMVL/whMruEi+WU=; fh=1c0tPJgcGywfyi3V3qkwM5h/1TWLKN8ONRhxa3ymSCE=; b=roVxoPYn9KtB99UcOnHfW8iHDOzsxNjB+1BPRcvoTSAWxKkPBpjC2wkTEwuepGupbN b7aKZamMH6z729BfYSJtab6rFmx+lgUyDHAqC0rgM8NNworErC6wB73Cz1tD1yKe6g1J Ue0/7bDhZmWl8Jk436FU97IFwZDHBl+sl0dkPe7CL+tnw7FeLfCSh40me4r2zxG9w2Zb 0Mi7p+eshymE9EdHd5ELfdNVMwSwIlTY7cxbLJNWaWncQaoGGsmHATVx34KMB5musHGf s0scrbeA4OMCkPwSI2EV9KR92Ugb7n26Dj0ZRQz1H8fF9uRo27QxRYCrVuVXNa5Hlr1r NN8A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=QM6eSu8n; 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 cp10-20020a17090afb8a00b00285be1801d8si300717pjb.101.2023.12.07.11.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 11:35:02 -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=QM6eSu8n; 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 B8963810F6FA; Thu, 7 Dec 2023 11:34:58 -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 S1443830AbjLGTeu (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Thu, 7 Dec 2023 14:34:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443666AbjLGTet (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 7 Dec 2023 14:34:49 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2058.outbound.protection.outlook.com [40.107.6.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8636F11D; Thu, 7 Dec 2023 11:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GehCewLa0L10eJymg593vxCDGC+2qfoVjTtxg+CmLsxPs1DiUwYrI/W2ZaKE22J3qkcG/BLgfZyFWYO39Lsm7LWgtuBZanbr5vUxrVLLyLhaJqSAsuD7c0Z/tC0hs9wDek2+2yf1NzQ1VEksvP1jELEla+pW6DrIBCN/Ay+OPD7jNhSExjrMAcaeYhCYCWJL5zAZsvH9VXxbz+LHNwMufYKRuVjhbf4vE0obUxQa0ToSxo6jEAJFZu5iYAxGhPjUGmyX2VjnlxzqowUHDWyvBzYuDANlrQA/soXdLrCUmMGKk8SpVa6JgSlDqCBtO60C8tPZ9co4OfL0u0OBMZYnHw== 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=uNkSQwzKXGQp6yi0kvE24U3kEqTFmMVL/whMruEi+WU=; b=K6z2bGujx3O7i2BXRcs2cbU89vP04ESR3u+bIywuakV3e09MyfA+5lwzeQ1NQ5o2bTLwJyKYXrtXfvtOOqoJl3uT6UNrko736Hyw6qSL5mpvduSsVdZ8AF5/3ITFkPZnUUdExCcDDa6boGNe4a19r83H1PRTDbCbWY/rF5ahELiMd4bt0xrqtU1FSTpOJnKVWSoWEw2Mz9KLiI0LiCKwDpHDJO3dZKHI2OqnXr/IcmKXiAfjpe4Sjn13LJ3cjtyAw49hEjQ5zOy32PU9cDoLhFcZXTxuz6V5Zvi4Q8TDG42YVxu+oMwJEHJkHZ4JTh7bxPgOzh2qXAYlQxuYVTx1gg== 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=uNkSQwzKXGQp6yi0kvE24U3kEqTFmMVL/whMruEi+WU=; b=QM6eSu8n6gucyk5IhrT8LGNQV7uaBbXSMSJRhpXPwnA8vU7vycxHkTxLGu3SaZQ/DVqqrNOIHKF4n1+ZjXe5MiGyHbehDh+fozGteQnXtmhzUBxj/FwmYvFhIFnoFAbJaL0SZS8Wsda19d0oi4DupElioDSl9AkhFA7cocyrXiU= 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 DU0PR04MB9635.eurprd04.prod.outlook.com (2603:10a6:10:31f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.27; Thu, 7 Dec 2023 19:34:50 +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.026; Thu, 7 Dec 2023 19:34:50 +0000 From: Frank Li <Frank.Li@nxp.com> To: helgaas@kernel.org, manivannan.sadhasivam@linaro.org Cc: Frank.li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, hongxing.zhu@nxp.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v2 0/9] PCI: imx6: Clean up and add imx95 pci support Date: Thu, 7 Dec 2023 14:34:21 -0500 Message-Id: <20231207193430.431994-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0348.namprd03.prod.outlook.com (2603:10b6:a03:39c::23) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DU0PR04MB9635:EE_ X-MS-Office365-Filtering-Correlation-Id: a142cac0-0419-4c74-ce4f-08dbf75b9435 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B0id3v/W/rkKSmkVC7dApRZET3WekGe2PLCeTY+r2mqcAsieD8TVHRjmuVsN0L/T25oolPEDoLR5g5Bo3iMWdN3qjqTI4CgH2fYQ3TZWOYGI5GAc7pGUYF9Y0MlvSxBuc28mgRwYR/qDmhVv5cWaaUx2JO0NlGfLiDrJDf6ztrJ2MtlcvLc9z1QRgjixBzV4P6OaaExWrJxAfQoY5ITr0XfC5lMjqOw6EInzC361K/jScUhHKIPJqmZDWwE267qMJtumZjRANt4jqoKjFP6OV4JL1gwJC/vd49EPb85tKrxXEDezViLFR1v4x23XgCAvpUGs5QAyFgTgkJFnUVW7uM+gX3R2ThXA7ZZl6q8JV0392oAu1KIZdGISwcJTuuePUVEz6DxtUkiJM8CmsM4Y3ku2qFV/TFFEGv1cLu6NP4lY+PzXLH+ZIa+hRU6DrUAuUuhRlxDIc5tz/1BQ6Eg1SxAv5ZuFxEa6xBvKKdFaSojwl25bv9XBxuovqEKu7quFeIJlJ+eRovXkNg3xDi54rIAlLytPS0yrUvbmgso0EJHQUcmcsNJEaEdl4lehFWcXEmbk3rkCNp+9MOeB97F8iulbX4ubuyCPikILfrJDRGHTxbb0hLisSgLT+FpCkn50 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)(396003)(376002)(346002)(136003)(39860400002)(366004)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(52116002)(6512007)(38100700002)(66556008)(66476007)(66946007)(316002)(6666004)(6486002)(1076003)(2616005)(26005)(6506007)(83380400001)(478600001)(8936002)(8676002)(4326008)(4744005)(2906002)(7416002)(5660300002)(86362001)(41300700001)(36756003)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: t1NglX5a2KaiZ82lMvp+j+DMhM2A9B4MIHnx+fF0v7U3KU71CXrZdO5FB1qS7NMbmO5xJ0DVu4EERNMMw406WHRt9zmnhYroJnH5v629pHkdqHXcmqMGufWTfAOhTWNqWArKx8tFKVRdCyk4wuJ8TDZqlh2XU9O39OIpVd72WlYLYDFXzNLZ3R4cJFg//N26aLBqkKmjs3uYmiLjO4Sv1mVjOKr5laE+NwJKtQFSNQ9nYM4EE58fkzRxic3GjiYOlc9PAquUS+aW38fUk1v+s7IsHdKrvXp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1DhiuS1lMAKew35lVxeWCZPF1hbDcEvyL0mblM7F7AvHuXHiPo9jwtDsbzjfxCDz+GK8kLn+BmYNvGMUNXFpjXEMd5ZE1hwROThq+CEkIlzAFTke4dPmPIyOqBwa0OW2eYx34kDO//55c9RkOFiIPY0Hsv3B5jN2fVKjw10s4bjNyuFI3zir6bQYX0hYT3x24skBYWk2s+pcZGG/JDtwcMtUS2DxieLizJVo= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a142cac0-0419-4c74-ce4f-08dbf75b9435 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2023 19:34:50.6917 (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: LqEe1A3Grko5hBu0sQqhiWPyjZbpiaahVVS7324mNDB/IhG5ypFtb5loC2CvwGhzV/IT5xdhML06LE9PxKM9LQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9635 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]); Thu, 07 Dec 2023 11:34:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784652971295786891 X-GMAIL-MSGID: 1784652971295786891 |
Series |
PCI: imx6: Clean up and add imx95 pci support
|
|
Message
Frank Li
Dec. 7, 2023, 7:34 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. Change log see each patch. Means no change if not specific change in notes. 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 | 514 ++++++++++-------- 2 files changed, 300 insertions(+), 215 deletions(-)