Message ID | 20240607133347.3291040-5-peng.fan@oss.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 1966DC27C53 for <linux-arm-kernel@archiver.kernel.org>; Fri, 7 Jun 2024 13:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=RhG2AUOnFpIRulmD0bT3RQI4HHa0BfLpCVtcmYVEzjQ=; b=228vDy5vwO9zSn 7SFeBvyA+woxKkL/vJMBgXjKvl02Ta7x66qO5iwMdN4Jf7yc1A5Fe7CSBd/U51tv3///OTit9RSy3 5eVLITuZspQG/UTFPCLRUSuDrpTee23tfE+7psjRRertL1RfQR4HTzFO1EVUywQC5u8L05RnP/yl2 tZNfhUodIGssB4ukJvPW/d/jy7QYY8jz5qdqyr+rcRpf6HfcW0Fbm4BVZDgmq6NwzQVqiprHP686L arQ5AiDUP7lVfoK771Wk6ZikmyMvNnOZYs+Dp6i+iKfX/Mm5B5bg0WADBC8F2l/pwRsp8zM/vmBcv 3RKzqrySTU0kUwS/UNQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFZb2-0000000E6xL-1WG8; Fri, 07 Jun 2024 13:25:32 +0000 Received: from mail-ve1eur01on20600.outbound.protection.outlook.com ([2a01:111:f403:2602::600] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFZay-0000000E6s2-46ja for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 13:25:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LAsXWKtdaJcAZI3zLKfJC8un8ZagBQ0xdLC+FHibB9ClJxsw6b1nVgzkIlwSxIHiJcIzOn9aINm3x/5RoRH0Do9AwV+BoXDpySrKJEpp6ODaAN3k9AUqG1BBbRnCyuI2eBY+zXPw26U8eYiQVHux+zmXY286dY7WVYteIsKX7LW/ViNlDOfOqGYG4/Dh8UhCs/rfDhme6692zNiUd9GGxxoAo2mo1sx3sQFNZ4AxuyMS6CaNsLXmgfBaUwJYJyMDKxsueymWdPLX7KpRcMAOGPCD63CeZNpcGQnc1cvDWIqJ7yt7jNmV0SCmxm341BNrybHYxsa8bke/gkGvB4Kw0A== 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=bIFtopC6uZy5D4zmlfSuUSyVkgicTvUQocI0PE1CNAY=; b=geSItsavhw6CQnXYRtTmjcd6i5J27oO+IqG3eI+wZ9VDujFYEn8sHpEE5CuSAyf91qzbEziRwZV/vG7a6J9Vy1mt/uR6A4Z9V4F7o37y4D91YzaYi2H3dKAZJENOSHlhvshWIIOoeMZmDeZCTz6Kq60gFXSBj94NrdN7JwYI1ehJIyzMM8pGuCvCexshL54bzi1Cd0HszDjVOz9ZJ/CjYy5MqU6jqljiXQR2+oxr5O0gyW+kM+qFBLE8uc3x/534v+P03lB2CsZ5zMrQVdsksOMkHSR0KA5fLDE56Hat6Tmvruy1iK+/vsPrZDafPb1HBT3jnMwSEKJZMqoqMKUEyQ== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bIFtopC6uZy5D4zmlfSuUSyVkgicTvUQocI0PE1CNAY=; b=leaYPTqa4r14bV/7qkK22KoUNiw2hyAzVmVWvizYgBqcPzDr5aK/7/iCoar8KtpJP9mC4oRX3zgbHVC9XxAOJL2bISQPEV2zxGRkHtQbUNe9a2bS1VfF7TfZ8U6aKUdFu0yp4Rm7oW9pzUWd6lhnUwdWXWByKNVfaD3zB0QLErw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) by PAXPR04MB8944.eurprd04.prod.outlook.com (2603:10a6:102:20f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.34; Fri, 7 Jun 2024 13:25:22 +0000 Received: from AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256]) by AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256%5]) with mapi id 15.20.7611.030; Fri, 7 Jun 2024 13:25:22 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: imx@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Pengfei Li <pengfei.li_1@nxp.com>, Jacky Bai <ping.bai@nxp.com>, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V3 04/15] clk: imx: fracn-gppll: fix fractional part of PLL getting lost Date: Fri, 7 Jun 2024 21:33:36 +0800 Message-Id: <20240607133347.3291040-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240607133347.3291040-1-peng.fan@oss.nxp.com> References: <20240607133347.3291040-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI1PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:1f5::14) To DB7PR04MB5948.eurprd04.prod.outlook.com (2603:10a6:10:8b::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB5941:EE_|PAXPR04MB8944:EE_ X-MS-Office365-Filtering-Correlation-Id: e0ea0baf-2ebd-41f5-40a5-08dc86f54820 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|52116005|376005|7416005|366007|38350700005; X-Microsoft-Antispam-Message-Info: sBpwXoMRC5mgG6AmZy/yqr9xB763aHueT8AljzJy8hgApGdFBK6SNfNaloYMB15W7eEts8jT3RO1XdWSZsbrUpA15vH6b8jD/8eqkaYiDX1L8Yg83XDQlrKZ8qNAgBLDU020/jk7UQEYo5o4vphd2PCH+AK4pR2Plv7Hm7wnfiOiHpPPU4qfjk0knZ43tK6AD10ie7LdvzgeAAYmYvZm6vUQvYje6C5cjfUNlIYZHNeOZ7Hh4TcjaQWUf+/OiC59BarCQbgTFGI+4LQupG8SykEEs3+fB41ALtSfZvNy5cqKiS82caRJZ9sXauH/F7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CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5941.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(376005)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b6Z/p5xRgk2JEA3mZBmVx+PYS6aBLVSXoUOSyOgFpxqpG1Yu1ECKAMo4niCd3CM4kc6dSylmgyTZeEjfTjG5GFMbS5xBWtZFZOBnNPLvOX3nx3L52Tj53w+qkJeeXtuR6Xkhca6Lwr1WUc2LGqdLNqpJOqZ8HqoI3wDQtJncDVyv/OZ3l+e+1S2jMX4nnZIjTelcMIjaRNdnJNFCb/1WP8YYt9OkbBpAGRLrM6bEvPaUdM6YhgyMWVSAdgUpjS2w6UWUvxLAAhXO2LkLbh6cy8knbjko6/HvsgjP9Ddrp3U8Gpr+GabXVSBZH5PwzVwbL0jcbaTU7dRCLI2qfEPc0TmW0/FmVcIdMSD1/UNEMlz7qqNXJO+RTAZSL3GGdVlsRnSvrUDwCQ2JUMQr59m4uBzjor8/Q3ZfFhfKBKy4Z3SJ5EO8oiOPOLkr+u0AtUysUmdwMjNZg932uXqEKi+OosCxBja+aZWTIqiyhNQZPcP+ti+Ma16t2U8k2rhzClPZAU7vPKjVX76nkPQFDxytOIRzaOXmJf3hv19v9yxRQFD6mn7D9lmrow49T215hVzqPSCJy+Tpx/3M6DJ7f6r5Bq1osfFcjsruISEKOLt/t7hVq3yIPThVGHVMjiiD/3nfrknI1MVo50d/HGqDUQedAv9gJ5PCAhr48HLGF+uXT0XWL2Zfy1EEwR2W+mm4Oess3u+mW3Q448I+tL5y2VTq/i4/WF054QKIR9wGZ57OzomHrB0TuFK2iL4uH9exvf6XOF8R84ugnvI+QnxfOrgrRh0508/vFxZK9g7LMdrDCDCZa5TmtrHBllvlqjVV+WBKIBXnyDvyIV/A8hHbJCeZDsrGa7Bf2XFxUUtvaSIvZvGqhBOVMZQ7BbngJRyJdB1mJfPpLJ8G5J0Y07mDztMePpH+gUn1Vssy5qY0Oun5cAHC1tlsicsg390f+hZT+AMV+Z3eWRqdRTyVdLE244EpdZP2Mi7ds5CTBx/MZg+GU6xZxhReacv4ugQ0IDGk+V7N/OVY/tlDennov5k9O6Ic0dmQCaBIs4wK3dLfOBCBA+tjOcCuM9zoRc3A0YUsc5GO8HJdrLOlzWKvewexZxI3k3tx64cPF841p9nMmNzJog4HS0yAZlA+8IhkRgIGLTlgcHylEmByiy3j/QAWvqB/qeatd6xWbqGfJ+LldV2iK70PJiUsfaopg+x7ZZXVAoS60zjFPBMY7aatGBJf7GmvvkFtX1AN+VMhObX7U/os3FklBx5LvhF5ePOmhQBJ84v4cEsfpDgVAPYK5Ebv+E4tqfqaI1rlNMAwqLBpY60BF1Be6PS43Rp01+OaIqsNlR/PiPQbnjPPCXKFvr0WKHGsNqc0ytiJUkG71XZUkPt+U7ksE0W3wKvvMajDN06yzU3pCtziJDw+w2Z0t4g/xWt4HVvLp7OtmgJ0etVE5jdNj6DlEQ2/arBwco6pLZjBC0pxX8UK0uuNCfot3xYWyG0lDac7YT8bhTyZhhJYi2Ty/b1Ki3TZRCOL3T8vlxZjfgMYXhYiABaGL2enVvivSnrGCVWJjD7zBXwBxhnsFiwMG1Z0UWqIYQt+kem0Qg+PIJXj X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0ea0baf-2ebd-41f5-40a5-08dc86f54820 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5948.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 13:25:21.9714 (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: /pvmuUIAxKQZcKHOD1vRMh/wPRsctinR9lMkzV5XsudVCUYyso7XIdHeUtl3gYTq/gGnD4BjeGaUnZlPGT4Q5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8944 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_062529_132449_A289DD70 X-CRM114-Status: UNSURE ( 8.92 ) 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> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: misc update/fix
|
expand
|
diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index 44462ab50e51..1becba2b62d0 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -291,6 +291,10 @@ static int clk_fracn_gppll_prepare(struct clk_hw *hw) if (val & POWERUP_MASK) return 0; + if (pll->flags & CLK_FRACN_GPPLL_FRACN) + writel_relaxed(readl_relaxed(pll->base + PLL_NUMERATOR), + pll->base + PLL_NUMERATOR); + val |= CLKMUX_BYPASS; writel_relaxed(val, pll->base + PLL_CTRL);