From patchwork Tue Nov 26 07:56:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 13885569 Return-Path: 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 E1614D5A6EC for ; Tue, 26 Nov 2024 08:05:34 +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=1I9xxrN2Rh/xWirdR8GNL/HnNXIkRjyXKY9PxRLBtd8=; b=HoynFA8EwUyqtcIabSHXlutkEB xMUUQwuhXELDg9bxDUgkvc0I/yHE50/+Mfp+RmoutO/dredXqnrNwzLRDvOq1OcDOk+h6H+5ZRYCO uU379oZOvoGbnsR80rygHdtU36MbKO3DuFWO/wkivMdqN0oT2lhVcHgsbszlr12hFD6P5AL531MMS ygX1m0kd28k8MN4AYfajmJMg1SXdgAXTmgerhOIFYcqcsRpSKkTSl/DgfuRC1ECtkqKDmZQIC3jxB IxOJimeZUfRvt6rMoOjJmOoruaL9eXjbhALetUtpstSIzsGhtfhPibsbFqzKIwMeREK4cxpVnxuqy 5Mx9YxfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFqZW-00000009vBx-24ax; Tue, 26 Nov 2024 08:05:22 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFqSu-00000009thb-2nxd for linux-arm-kernel@lists.infradead.org; Tue, 26 Nov 2024 07:58:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ALyB6yLJ9VWwjsV57T8G2Apiagbxt4f3omTshYhZf17QDjfYDAMH5XfbfWUAsGLSfvVjFTZKWkIMLDg5WW0IThaTlBuzEAdtkoMloIvq8NI5Bky+zo9LmSxSCxjNq9ysVCNcsI+vJaEDMKFvVPUXyU5BhSQ/5dvydZgk1gX49Ki6Jz+n5awOtk7X4czjXR5D5QZo3qJF5NxRWsFFFvpXrXwf0d1+5WXK8/7cp/S5wQgLk5dyWQQuQ1zcq6wj6XX7k2L9H6YB6PJza1It+1sD+ZWDW2oVHzkkL03bvyAyC+LyLVVLYZYShapeHScn9JN38D5LK8jAj6JHkDeSUxiVpA== 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=1I9xxrN2Rh/xWirdR8GNL/HnNXIkRjyXKY9PxRLBtd8=; b=v0868kTI/vJiKE0dGIVY8uwZY6SsM+FytRw/mhcrTWuil9h7zESmcvh8PcwEo8nqp5xg+HA4dmThT0ygO+4MNsmdyO7WQ8df0bE0DPbz8WSRvzETyFB2ecL4Tub1dXPvh3viWhWG/HsNmjq3UJmi1U4tVcQX63O9fGvT7Z8wBw9cMHw6+jhpzfI69XXfBwpbU621n7lcBGBon8uw7+WfwSXTUkknqMA+k5fMz2aWfXZSlYIRuYTs7wc7iM2nMm9YwxG6wnwQo1DnLkDr3v1YD/GJhFVBoMHpV9sLhE6X/lUZDr66O5YKtV4EGHaiSdR4Ao4hMThg4T7wen+DHUCYdw== 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=1I9xxrN2Rh/xWirdR8GNL/HnNXIkRjyXKY9PxRLBtd8=; b=MNNu2BGXO+ibiCekeDeFenSI3z3ewqblhyxGxV0X2gZWAwlGi+1pwQ/kJEHRj2fYm2CUqOchr4SDiWna77eUMc9GPVctPoEFQ4yvCVR6ezFzvau3ATXBNvVlpeZtWmq/TyCfG2DD8qjxkN0jJdqxOEfnXCPf/iJurew9QaXu1BqXbbLKNw3eKAVFfTbS0IBdE9VS/w8BAo+dSOEgzP/mu7rPIGKBsDbSaYhiVQImIBNprSSCB0VGjyxTf1hL3Ar1I8GAoqJ0vNzWO+hwXQSSs78XmvvszJFeCx0yo0bZy2vIyrkbtktA1Dz4DDKoNz/ka3QYmkP+kHLK2x0KxfBWaQ== 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:29 +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:29 +0000 From: Richard Zhu 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 , Frank Li Subject: [PATCH v7 07/10] PCI: imx6: Remove imx7d_pcie_init_phy() function Date: Tue, 26 Nov 2024 15:56:59 +0800 Message-Id: <20241126075702.4099164-8-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> X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) To AS8PR04MB8676.eurprd04.prod.outlook.com (2603:10a6:20b:42b::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8676:EE_|PAXPR04MB8489:EE_ X-MS-Office365-Filtering-Correlation-Id: 9660762d-6c8d-4228-a002-08dd0df01d2b 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: 47QHSo0ZUPdeqDAPyWBhFsfCDWHpBVPI3IFtrQqs7M+to/PuWUZ2UJNB1YwFbD3NmKLd+CxLwqJXoqccBlMcjYkfrGUigcLpO4T160mOnzX/eyFPprSMD2hMX+temB6smI4sbdu19QCbO88BzCzIKjtYaRckOLQd+f919F736zf4sJRnIGSqSbp8pCZhbdsVe7awPsD+/KZTUrNd3kUyMtlxJocaR03/Zi+xDlw5yFva8UzcnkiaJ9KFBE6a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vxCYxW6JO91epWjBRLQ1y/l2I0ZyQqLPl+RsGdvihDXk8lZGVLWLiiEoMgnmwnGQWJcomo8DCGfYhOklh8Rut0tsTzv7gcuqTaGSQmfY+89r0kENIjw= 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: 8fz6R+wYm8rzfBtp/ImH0MlvcF5PpQn7hN7hOm5FzxYPBv0k4W8T6IrwLqzNdVldvMdyok1U1o3VXEfmPexdD5e0zzdmlzgHkfua/CxJX0xfAhVd1reTFSVZa7psx0XKIae66l5USqjbtVlN3/OHzsOgBZE2PfW7IO4XKbGLzZ9cLWTRRCntYa3syNumRnW9DsCzqnTSw/lcZ1MmGakJWbbXYKUdhMICKm1UAqhVEOYP09UNbRQ3XNXcuOEGHXZv7nyrERDEW62whvla+CM5hdAwokIldF30JiQKjAn4jmh0MlQ+wYUBUEsGIpjqD61+Mk6uDtghHq4RPVXuZ4z7Aq0CTDjzvphc7wAqK5GSyi4DHeEMcHEe9rze3udXifWVmOpygw2e7MxhawFfefnW50Yw27nNYTrh8JRRWjJkrfpm8D0OAcG+T75l+oIShBzXoPgzeGnQXt4cbFsdaTlD0YvORAND/aa0rQbHiCLo79qRytUhPnxfCen4V4I0Az9YPNXxks2m21dnidQsQqYQPxSwFECXteq6gXmIWRpuzWsX+F9vS6aAYIPjbYC4oz4rgJw+Oef5Er7tG2fQHJOso9wi/Z4lZPoe7D7A+vURVRssTYks6Jlg8IDD3xSyejeCClalWB0VWUz94y7iHAWJxckAZRvBvyzVaRUQrOZGnvmbzhAMPN44VfhBPKS96q5Er4oRxSTQBZqxagg3a0DqFlZdSkaFoCTIW9jxmGAUYhIJlRyA7vdJPPNZsI3ctFdLyuVHp/wYd26HycOsBcDvTktNKWenh0cL29JYQZj8PxuB2CM9mmDTfuSiPz5bMy4iwTBWG+poHpsku9jUmNFMoYNhqq0vFeckLC4H9ug6GwXirpGBarqJ5eW54e/+LgFFy9SNo4DXpUGGHuK/3jTqaBgih5jkb/jkJbAxyb8vywaEFFixNXuAQ1MQsHpMQfaI8Nn4RzF/lPoKSd4t2k9EI9rRD3LSW+M8vXeWSI7pHsWfHmFtYKrrSpRjB2IWs2JiF3Q/bxmGg/KqWdGc3UUAWybzi6Zg1iheTlZv99DPIFgRA3SDTJ1SJcfpBqx2HTBqAa7xeRNWoheCZRH0e/26Qkaz1ISOHTkxY8nm6NyQsrr9NoEuK88rp/5IbhAhKpZetWlHhZmaIHx0F//7VoOjqlVsCy8jBF8Kcz4mKI5R4GvmkT5qfwo+WZMteqr2FhyeU6lTOEIP3WdJjq+5G/NcnZxcD1c99R2MdkXyblb0cvxfS5Ru0vLETVKiC4Otrb6a+aJQH00Wz9YRSHN/yhaEQ8/mV5hckjtFCirT3lY8Z8UqY6t2mZg7LkJkrwnUHTIaXfnqYr3Itczm0dqlhLzT8YZNzN0LkjWz+03rORWArG+0NT1ySyTE0jWovXn8uL3oKoTrvUapEAgrR42C7094rXgTvuPMiWDllQU6j82eVc3m+8c0IwpHuPrrTn5a4yzQ9YKsHACqJxqXQuD/3fenEPwLOlhp576P0OMN4fLS6ZjoUg5z3SY7OCKI1gupbsspigR2r9ybRcI9BsqKBqETsHon8TazyKBiolye4r9RFI89pbimAog9iHBI/ll131c3 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9660762d-6c8d-4228-a002-08dd0df01d2b 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:29.3235 (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: UErIZcrJHrGP7PwfuDJp4FGeqvIVYWG1OcnyNYLG1nOnwQhFx/xJyMs5aKGppMneKa6SL+JJgAEBN++cMCHdRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8489 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_235832_963544_0A1FDD30 X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This function essentially duplicates imx7d_pcie_enable_ref_clk(). So remove it. Signed-off-by: Richard Zhu Reviewed-by: Manivannan Sadhasivam Reviewed-by: Frank Li --- drivers/pci/controller/dwc/pci-imx6.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index ab2c97a8c327..743a71789d17 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -394,13 +394,6 @@ static int imx8mq_pcie_init_phy(struct imx_pcie *imx_pcie) return 0; } -static int imx7d_pcie_init_phy(struct imx_pcie *imx_pcie) -{ - regmap_update_bits(imx_pcie->iomuxc_gpr, IOMUXC_GPR12, IMX7D_GPR12_PCIE_PHY_REFCLK_SEL, 0); - - return 0; -} - static int imx_pcie_init_phy(struct imx_pcie *imx_pcie) { regmap_update_bits(imx_pcie->iomuxc_gpr, IOMUXC_GPR12, @@ -1554,7 +1547,6 @@ static const struct imx_pcie_drvdata drvdata[] = { .clks_cnt = ARRAY_SIZE(imx6q_clks), .mode_off[0] = IOMUXC_GPR12, .mode_mask[0] = IMX6Q_GPR12_DEVICE_TYPE, - .init_phy = imx7d_pcie_init_phy, .enable_ref_clk = imx7d_pcie_enable_ref_clk, .core_reset = imx7d_pcie_core_reset, },