Message ID | 20241014-imx-clk-v1-v1-3-ee75876d3102@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 0C86DCFC527 for <linux-arm-kernel@archiver.kernel.org>; Mon, 14 Oct 2024 09:21:25 +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:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tll9CQpoI2JYPFCpRJcMtd6vZ7urFG2dHGkXxAOPskU=; b=bvxKde+3m2E9x4HSVuRgVTidII /b/mcXVUOcXWQDWHMlnJaPbHJzqcUkObB2prSrt/npvMjuPa+Y6hx2Bo2KkSbSC1AmM9julgOi7lp ALBut5ORUrCXwJotS7RzeJvFdsRbrKm4/Je0Q5XFnqQeXbC5AR0ME9FwAU6kBCyo4YtglZ205oWoB ondszv0hRwurE3VSB8/pB6QB9Twd5Atj1wYxZkd7hAbBBpDgpveJrQirhC0v0iRnKABB+cwg05iyW cv3WY55c41FPdl8Cgx1l2dJbDw5Slsaesl6YwjtKY4HqVt7ya35V6AtN1X+TUzmk26lFJy6AaPXgx krSmGjcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0HGM-00000004UZ3-49NQ; Mon, 14 Oct 2024 09:21:14 +0000 Received: from mail-am0eur02on20631.outbound.protection.outlook.com ([2a01:111:f403:2606::631] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0GzA-00000004PmJ-17Ha for linux-arm-kernel@lists.infradead.org; Mon, 14 Oct 2024 09:03:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rw3mQQWRFYN3OK760Qm6amBGTx8MMpr5A6KreozADSVOL/kfZrxSUXaugRtpyjZEgsIIoCfQ3pKBmrXyz/Pe+qjRLwrxeFAAQxUEvHNzuAMYDEsrb5TLA6Rmluxgssh8ENS4vDb3/w+6nNYV9LSsP4SsHlLIidoxgUXZ1aMjxMBL+OqFczAz6RgfDp/w4kiUGRZXkA83SXAdxk9qIN6p8Yo55sQNAeCrxpTnYomqvnD60gnPoy8EHjCWqXaP+ZEKURcjW1C/boIpIvogAHfsXOJa4XEgdZFcqRasvYJyCpY1UgsQknIGL1ssybdgpA7ejzhjgwpJv+OXpdM12q3NXA== 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=tll9CQpoI2JYPFCpRJcMtd6vZ7urFG2dHGkXxAOPskU=; b=DptD5A05zeoEkqfd76+xq5E21bguA7/h4NySK8MEto3DhlI/JfKs/U3qI/GmxviXpAqa4U5LP8QJ5QFJKJ+XmGHesJpqKznP7PptWTa0Kv+bnNJ0BQ3Anddu82/Gc5pgtQLcMBrmEG4YtmUJX37YgX73dlNkhqKUrBaJTB0UrIoMZTuPAHbyCJPbvUJaCP7vUoe7NRQI00cff/FeRnjKPnClfWDNVrg2syossHmAr//jvaeltet+sKnRE6FwZEK7egOxNrwoyGVQxKSO2k9W/djgIipuiH6JA9w7Xil0VZ/VpNKsxw5MEsi6KuRCpnjnmJZm8kki9nnsQhlnM58fFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tll9CQpoI2JYPFCpRJcMtd6vZ7urFG2dHGkXxAOPskU=; b=saPI0gTJf911xgSKUcwNNMnfz4zfzwpYayiZI+cQ3/k2JIcZiBv1xWemTewN5CIfOuNVHPl3PoLxUUspA2Emt6oKmFDisLt/Fa2Yn62Thvd6honJr9iqq0/rZoneosq2/hZF2c+L4A+EJOqODdQTEfMgIUO2qgWobQ+pqAsH0TU1dQaNU0dH+jNcpK01DW28wZ8kN6+LsS/cNOKxiYI07xM+HimhrsbEF4qWepTYfjil9ahu7VslR0ZnMYp7y5KqpBL6gem1gzIQlbvrnuomh2m0PX27a7bAoSJiuv2ASrgSb96hzMOg/dnri9nRA7UF/1knEuPt+D7VNCnxnC1d8A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) by PAXPR04MB8765.eurprd04.prod.outlook.com (2603:10a6:102:20c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Mon, 14 Oct 2024 09:02:57 +0000 Received: from DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197]) by DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197%3]) with mapi id 15.20.8048.020; Mon, 14 Oct 2024 09:02:57 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Mon, 14 Oct 2024 17:11:24 +0800 Subject: [PATCH 3/4] clk: imx: fracn-gppll: correct PLL initialization flow Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20241014-imx-clk-v1-v1-3-ee75876d3102@nxp.com> References: <20241014-imx-clk-v1-v1-0-ee75876d3102@nxp.com> In-Reply-To: <20241014-imx-clk-v1-v1-0-ee75876d3102@nxp.com> To: Abel Vesa <abelvesa@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Aisheng Dong <aisheng.dong@nxp.com> Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com>, Jacky Bai <ping.bai@nxp.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728897092; l=1523; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=Sv4CHyV16UexiFdZ+yIX03Ey/S7U3vzUPoU0hMATx6E=; b=Don9BLt1qZNpRnAE7hpt4WSRL7PiCdVd51Urgvhksw/MZFdrgL/IxtagQMHkQY7ElrL6GNtqO aMhQYmeGrrrCuR2ZfCeyyCZ8W92DP5KOyYWcV5LwxPEIu+H1eXLpoOF X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0019.apcprd02.prod.outlook.com (2603:1096:4:1f4::15) To DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB8461:EE_|PAXPR04MB8765:EE_ X-MS-Office365-Filtering-Correlation-Id: e786ea21-fbd5-4716-4554-08dcec2eff44 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?5ve52UMrVI27U62fQGFOmK4R+xDvLGB?= =?utf-8?q?M7LRhJuSBAnfZU4CtbxXXvkzG9eOuDfTuYS1FDSrXDFNVuPQNI/IHlbYOj9SSvXiu?= =?utf-8?q?cyz4QOxI+YWgmpTNu+NODiGObQsCUmZw/iNvBtYXNQhJnVCgxsGE2cDN2a8sjSxof?= =?utf-8?q?ehbJWdaVS64K36gsksK5OjTJUHCw4U3yJ59FEsLwlyWYmgSS4GRIbxicsFsdmNFOU?= =?utf-8?q?e4EcLwe/47QyQFqM1AGr72XrkdFbL8lm+EIngi3+v2dOUR9CoZISyjHqqhgv4AiyI?= =?utf-8?q?3uSTMUCuKs//GYFbglwaBQkgyj40IYX51wuAFAtPqnPsMv1L9NCU2UANsHxtXaeqN?= =?utf-8?q?k4ci9/XfQswUb0X3UMWTUBUGSzRSkFQ+YfXRUM5n48VhVKVsgxEo6aMLUCdIbVWEW?= =?utf-8?q?KhSUY+ZLm8gJ9aiw+tfITSQznFphsauru6Nb7b3jChecfMRpyLg8zLPEsR+7b7A9k?= =?utf-8?q?u9DwZ9IPyUxxbstBiWOhZ84+dEpYGYwZsAJ6jmst6D+VGbQH5jrWyQwERordOB8Am?= =?utf-8?q?yupz9iq67nJlMEwJGhDI9CzQhWzd7q510ZsvEd0/soqQqcBrxUznknu82o2bHrMEm?= =?utf-8?q?rurTRUy1LQtG1oUvMqQUD2kVUk4yHHEMAdvpkN5AOB9yr4t/gv+tEeJu8siICh397?= =?utf-8?q?pKedr5s0NPoQh5O7kDeMDbUlo08PFO5SHFPTutC9gheRb8LXOnmJB83PsPrCSAb7f?= =?utf-8?q?E3pWqi9ODUt/SubnGhBQEnFf6U4PB+lRm4lxJ6h4IRlQ5XAAii6jg1b6xUSSYoowX?= =?utf-8?q?LpYwXUUebI1QEHcfO/LMd2ArBHmuLHofbibNVc4s/kfenf6d9tvMBa+btp6ynimxT?= =?utf-8?q?bZQJmtOtLTIH2CvlCcyrbPH5V9LLYoCTRiUjeTGmakTvGjuLKusoJ5qabEG7k9HDz?= =?utf-8?q?gLQvTR65pKwZlCeW7n/pkym9u0+j/Xu8IWrH3JPD9cmqipjV8iNHg0NQ9jcbQlqOo?= =?utf-8?q?9tCmqFcCR4fqKdfngiQTWcY7rZcNJmTKc6aaTfDADRXVJzeI2oV+1OKK3uNuRiAiy?= =?utf-8?q?zZLxYJVDJ0r9sF+7j8rCMiweZujlA2ei4rfEI45225nRYxNF/GHYeYWbd5hRVJyoW?= =?utf-8?q?pwAPcwqRlSFe7fcOsNDKtHRTjZmT2Jez1Uk+Au/LOlQRo7/uvLoep2uJAlDlzO9dJ?= =?utf-8?q?IKLQszscYAbeuLHAkWZxU8Ah0xkVhUy2PHk07+FbaPXYmulif3dG64+TwjCQj2AqA?= =?utf-8?q?OtXDCIFa69YwJv2ckFp6SOWLCvm3A5fDBvk8d0by5d/cnUcgAMnKLq2IA8XaXg9Nu?= =?utf-8?q?2ysWNPNBAQwR8TDU6k1qu5MnhVlX+Q2lP9A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB8461.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Q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yJPPxCOoMFb8MHALiYVlwB7OetOc?= =?utf-8?q?KeZCmTrqDOBjFp1+yxMclWNXkb2wt5bd9B9IncTB5iCvCk6wPcvliIIzhXc+JHUzi?= =?utf-8?q?bnXOANpJAw+TJjZ1kKU+52VZZgxaLWNptCPYs2FyjiYORTrDGFIdS+DsF3wEfI4zP?= =?utf-8?q?TGLddP3PX8BxWcJSCxr4y4CBqqOx/iGQRM2R2+fGA6h1SPEKhXajSy4v44BrVxQ2Z?= =?utf-8?q?EI4fCZAQ1cAIFuWU/hFz3L+maNWhQZJseFMxd5Wvh1i4cWgBDuqvugdaIUBJN5mQ/?= =?utf-8?q?HcNa5zcmHbbFSsVlMAfDb7Ui6pZ/nI9O8AX4AKnkaWd40oBwDZLkdanHR32OFGbER?= =?utf-8?q?Dn8BPjyXIJUmZnthfYhCEzTQjB46iA9J1hH5l9unRtH0+FSRoKeqpXiK7LV0wptIH?= =?utf-8?q?A6pqCOrUyeuIqjv8aKdOQ6G4wSa8eMzqitYV7CsqGnji45eyPyNssb3LIcU01l9ik?= =?utf-8?q?eyY+K8pbf9jLfPgCe6jzYUZKcYIj7hYxb95bdk5eAImbC/B1ZYXCbOUKmf5KAtM78?= =?utf-8?q?QBjcChURGgb2kgcIVbEGEI3lcU71BCEKr6jOemmxa6uw101ht5v8e4Od1EOdSXEsZ?= =?utf-8?q?jujrYRbRwZAKBHogof3QflgNhbqak396k4Big8Wk4oASq7elkNEIfOY+JlHQ0zLca?= =?utf-8?q?tUVf20/HABXx?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e786ea21-fbd5-4716-4554-08dcec2eff44 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8461.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 09:02:57.6066 (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: Qs3S88VDgbywuuLAc9mc47CNwrdU5zbpCLGt+hi1nqXT3lUeyCjrO9hOSLdLW8VdW+b7eenqBLw7r/X79hGXkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8765 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_020328_361979_57BB5F5A X-CRM114-Status: UNSURE ( 9.35 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
clk: imx: scu and fracn pll update
|
expand
|
diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index 591e0364ee5c113859a7b6271c8c11e98a0e0ffc..4749c3e0b7051cf53876664808aa28742f6861f7 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -303,13 +303,13 @@ static int clk_fracn_gppll_prepare(struct clk_hw *hw) val |= POWERUP_MASK; writel_relaxed(val, pll->base + PLL_CTRL); - val |= CLKMUX_EN; - writel_relaxed(val, pll->base + PLL_CTRL); - ret = clk_fracn_gppll_wait_lock(pll); if (ret) return ret; + val |= CLKMUX_EN; + writel_relaxed(val, pll->base + PLL_CTRL); + val &= ~CLKMUX_BYPASS; writel_relaxed(val, pll->base + PLL_CTRL);