Message ID | 20240607133347.3291040-4-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 192A2C27C53 for <linux-arm-kernel@archiver.kernel.org>; Fri, 7 Jun 2024 13:25:38 +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=50nnCZtQAOqT6ytJftk7a3ppSCkDTeOZPyvqBQwwJEU=; b=M0oLop/wxOB6Ru TSwyNyS4KEHVRwrNXm7NWJlcl5AYEiUyDrlQC30Rkcy/Mi94TjZmP93FRceoc5tOT4YJ+O2j2cy9d LmSKB2FhQakNzPxLZkFN4rFWkCVxfBoA7Wk9X5dupu06AQ/MpomRCiev9zR2HcsHlX/rjMsMj6VJA n3A+2AoOajDJo08KkSPFLz1ItuIkYX3dxJVqJXDQRkgkG6+U9ADrw6qveF6tRyk0VIz2qH0uRCz6i Tnv+Jal6IMRWW0d00d8pOuNt8bCsuTk0t4K+F+9JeT3Pg2B+y6mfMHiYfmyu2bjCOV2QSbtAoNmlN 6Is7WgV7bXXdIyTjdtAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFZau-0000000E6qp-3Zix; Fri, 07 Jun 2024 13:25:24 +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 1sFZao-0000000E6kx-3MKG for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 13:25:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HV8EbAtDNxN3/cm7vy2mZmNk82bvCM6wnHBfk67whGePHDzamfQGEw9SRt57KnK9PAovvcPhC60lETAIEmHcFrC4FAARibVgZR9QO++tDl7HpzEHFlJX56/+17rP9YdYkVWkN9ilrM1LFIS2y1EUKObc+k3SHryoSkKMXiZtFW/LGQn9ueOS2EFgO1joklnb9YzvonUow1iC+UrPk3X0AS6cRDn8dq3PHPPp9D4SVPMRYebcmgklP/0aSzSfhDPZuNoquvvyTAuqagrXV0LGMzJ8z2dG3fEUM0kTcWYxwKmgECZH9pHeMdXKgf3Mke3BfpIxjBUyq/dCkeAr+m0ARQ== 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=ONQWu0Z2SDPB1FF/NG9VETJX4nmn4NiTazYrjRxeENo=; b=W8vHywomR9+g63PDmUxv79vrxQXtNeegJ4DTGa8SNvnlQ+ra0eIRrlyruKxHa4TLXV+EyoTLlVMpZJxLHA2BssOceqkmjBJCwFRnodkg97ENEN/Vwbr7fVjEY4L4KA/wkAotf9Wbb8ySLAm0fJov6NT1gps8tv8Attt574Ubpw0Bak0gq4CffB4Kh7WMR7JC2/lkWBRvn5tmUchAznQVWp7eyf11v9f50eacRjVOt0uxmf25qPxRNdFarrTJiArLz/Q3iVR453okpA7kwxrLnC3a9Yeo3tgbA7xca/LTDkLkY+QmpFAcnk4HUojy7dTmNjqIpZAPD0uzaBvjQpR1qw== 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=ONQWu0Z2SDPB1FF/NG9VETJX4nmn4NiTazYrjRxeENo=; b=kIQpiHIYSjRom27rXK40BoeSO4urCyLsrm+3QfbV8zmB5uy/c0IW+6FcDtFDzXVO58cdj5VLKzOqUi5UCE6dow5XY8mmNaqy0Z3SlNYKqRJKTJTlDwsSMpStJG1wXHo4QAYwJgyd8C7KhAJwpn7gt39b6Xm+a0nfBtM08QnYJDE= 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:16 +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:16 +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, Ye Li <ye.li@nxp.com>, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V3 03/15] clk: imx: composite-7ulp: Check the PCC present bit Date: Fri, 7 Jun 2024 21:33:35 +0800 Message-Id: <20240607133347.3291040-4-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: 416c5ddf-2682-4005-c67e-08dc86f544ee 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: uR6SjqfiTsiPZfDyHm93pbKp3i8F6KLPUgq2/6leTtITG+yeoNLrbpL6/5DBdoDrLpdelr0CGkTcjbPHpH7VsSzLAKap/lMEm77ILXKLGqtK7JdzOLoBy+vPZuM6vPa0arKWu82a/CA/w1Cahj4LHWahTR28auWB9eTrfxu9s9hl1+wIMXdQ6O6/SaykN0xgo28oQ2/xs1puymPTUGqU8MoCRbfwzBktIPv29X4a6MMUQrnaH8NyNxr4qyhRV1pDu2YtdjfJaUe0nPV8hjxyvwI4MBS6dRIMQNOdyArezmcjvf4l/MnzsNydflmq/kdz/4CUeArvDX72Q2Gv24NhW+ru6NLSuhg75v8fLbdCyU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: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: px0OurrHXpbepEIeIVKpyRHpmmevUHC9AcVWEbA1PuC3U7nUjDruwf9U9UYgL5/ChfIfaI5xWS934vXC8twVL8dB09XPjCkspN4Gvkh1bwObTtuVVbRdfqiLbnL9TGVBIqBB12yUonhdiL+ZAGyofdb9Gy4BsLMHzcyy9e7H+D4x+PGoeqXv3ibwqgH+ntFSKdQaJMwTEJbv2wnhN83Q06cmR9KhWJAeQ2PHW4DqgVGrT3WBvFPgKXgE7ylVHwIBY9luhSDngv9s59CuO8zVw700VNL92N3rjZKnu8qdpm+DfXJ7IcKkukjjc+wE0f5iq/lbZMX2pJwOAVNTHcQBqhE2dVsd5hLOjLIazQcZ1ZXwZHxTjK4W3ELQEv3BCqk9nhS8I6d1kLpLoF1FXWNhnQGMXxvltRgOFl8/FT3ZRgvFueUPxVH7iGDpgqDmQBf6tkqfuFUEgLqu4hO52f5PKe2t28K9xqfbgVaxD+aYnvQepCLWqWwpi93B2EdbaHWtqgEuub5N3Xaf69OYNmkfZ1WDGY41ENJfwNKBUJMrGOQOg3ImtHWb1MhAfGqQcUkSoNTAyaEUV1R2goEJkIxYMhFby8DD29V79SVDh/g4+SpxBbCPBcoXkvXOUqBAABs4BPvEykXndFVBeEunr+K3gOWBeosbGpSv2h+yTpihzCs+uWZXJykk6U7yb7rB9XBF+zn8WzsH/MRlraKQRDVAmJKDhpR755dEsde5xIQS1lgS/xy0fTcGbwp44U4l6ClU4igLi6oKJXw/DdKGXa/1fxKyPZW2vnD3pHD5U4J84+Wui84ZsIfzyEtpDCbOAMp0Ugl57xpsbTSRHGu5/ushSIUDu4ckW4FT0XFAoYLUr87wO0195nF7UX66b4kJaVfkEoSfZargGuT6dU+WOAFO4POv/8Jtzfv2U6xBOoX7Hi88dWkN+hhxNUuRCrhe791lUVZ6e8XEWmZ5NBfanczjEF+LkyyUdqiGXAMPLuElfcUA2ZmCq4Sa/8hEn1PR+e5uqentDKyyJIoZYf2jzqzZ9WWtPcqkAXlUpMnlCn6duzmfoQd2JV/nmH7iWvba54XL7OF1sMcP+Y0l8+Z0iQTHUJ6DFUSvHI7a2PsZm3FuhFoH8aOHrkB3IuNXF4cEopJlX+zkJ6p/epwrFs6pIR9oY5iW9ia5ENLHPwhTWA6U9Sedq1h3sPP31KuY4vCPq6zHVj/wN41US3vdIPJnb+QdvpIy/X9531MMdma8pv89S2ks8cV+qhVYef+WeJr0GMUhZ5dyC0pk8IhXikFXY9rSGAZXeho3BX9juZkavUQlcJy2AT6GZ1AmcRsLAPRJL9GYKvFnBuwpT3h2bKAW72wCOc/vG799cCeaZefgTUGlgFCIzzaIl9oyTNQeFA5uk4qt5+qXt+VKhaR5gof4A5j024zl8HChnjOakyJals0WoV1wHUcqbOTKW7jK2q1EWECDj8bhXRssxxQQGZx3LadZvd7f0piSwEEEzmrl84r943wLqTr9U5l6i8HZ55AfQLYYhayhk2L4yvX9q2dQi0qoaXuS7PuojQlGmaUiC8aCQogJAzGISFLzvWfOe/3CN0RS X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 416c5ddf-2682-4005-c67e-08dc86f544ee 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:16.6506 (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: b8z8BxDMZN7iuxR6r8nRj8+upIDLi418p4r+0JZFLUPshulz3f3g2ctAJ5yuZhclGpXOZNAEttmQ85Gj5vzuLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8944 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_062518_941141_7A2F08D5 X-CRM114-Status: GOOD ( 11.01 ) 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-composite-7ulp.c b/drivers/clk/imx/clk-composite-7ulp.c index e208ddc51133..db7f40b07d1a 100644 --- a/drivers/clk/imx/clk-composite-7ulp.c +++ b/drivers/clk/imx/clk-composite-7ulp.c @@ -14,6 +14,7 @@ #include "../clk-fractional-divider.h" #include "clk.h" +#define PCG_PR_MASK BIT(31) #define PCG_PCS_SHIFT 24 #define PCG_PCS_MASK 0x7 #define PCG_CGC_SHIFT 30 @@ -78,6 +79,12 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name, struct clk_hw *hw; u32 val; + val = readl(reg); + if (!(val & PCG_PR_MASK)) { + pr_info("PCC PR is 0 for clk:%s, bypass\n", name); + return 0; + } + if (mux_present) { mux = kzalloc(sizeof(*mux), GFP_KERNEL); if (!mux)