Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp160702lqh; Fri, 3 May 2024 17:42:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEP4McL6kP62mKNxg99Y46bDrHYg0LHdhKp9pJle5CX7G+pZ/CD6lLo6DksHVQJI8SrMpRMtpTsaP8XRymEmLi++ldnqQM1wEsYzxlKw== X-Google-Smtp-Source: AGHT+IFX19B25k8WzoXPx/S1i447egNoCVr9EQTD4EzyaNLVoRgiKkOFLzyrV9nnfiM5cEMWbVHv X-Received: by 2002:aca:905:0:b0:3c7:4af5:7237 with SMTP id 5-20020aca0905000000b003c74af57237mr4423989oij.47.1714783321049; Fri, 03 May 2024 17:42:01 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jx8-20020a0562142b0800b006a0c30f318esi4420945qvb.143.2024.05.03.17.42.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 17:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=GLXIn02P; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-168462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2D2FB1C20B28 for ; Sat, 4 May 2024 00:41:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC65210A26; Sat, 4 May 2024 00:41:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="GLXIn02P" Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2054.outbound.protection.outlook.com [40.107.105.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02425BA4D; Sat, 4 May 2024 00:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.54 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783282; cv=fail; b=K/mTBtkGyEYC7lSDb+491cIs92Hizc1gwS9tMqf9mPVWQcl7cK1xYtmOiFTs66gaz+VIm3Hxe0k5S+43fh31EuvffJJtE+9gczYJhq5OU1xgP/fx0pkR2zxS99h3asXCo5Oxqe1s8Kv3xqJBkt1AAItz4/64nxUiLF3LRLgdTAg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783282; c=relaxed/simple; bh=q1A0+hU7W4e/wLAiXmKNBgA/x/XkBiviRb5Vkelujko=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=RdUaMy1QFY7lgCfPxCqlrCIJ1bDbfdRXXBdV2fnxV3nM6ja+f1+MAZldDhsuB3bA04dV36c56kBxPSPj2h9Z4R5qCI22piMydAczecJdC55qjGYno5RaSLLhsFxEMPcOVYSf9XOXUfL+lykY4qWU+1sqjNmr9vWY2jsprAQMeUg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=GLXIn02P; arc=fail smtp.client-ip=40.107.105.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KgSfjn9xeKLa1mYgy0Ww/bUzKlKAcPdJ1xz5RzAEabHWFOEamO1P60yAoPoDjIn9a81ZLrAWD/AfUcViT7gGF9us64QeG1OY6X/trRcLdLq71fHvze+f2RXRRY6iqV3OE1C8qqxaXENr0iPPPqWuDZF12JVAkNJW7BQPJjOdMQxOqDPwkH3njI3jqmwkfTQ+XUrZGXGX9rd3WyxPeocBN8Enbx9lU1vHD/7AVpFfGEWRFQQCzJbr2SSefkNy1sC3hIFYxN1RPVDS1pq+RSH/ll6Nc84YgtnsgBgB8ZKRZ5oZ5/TzNCijNpvN8J2s8R+Q74jhnzOVgUHTbgmZ+ukBbQ== 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=0IV//EdgGByvRtKbvLoHynbxEW/SMWswnYjQkG4VShQ=; b=GFyXAI9M4bDH3XQNHd3NzM7rYdTHB2003PUEcDr7ddLEFmuVfP5xGcLibA/unR9ScZpR+JNPwO88CKBcCZhkTqlFtTQDjTXEtIRCaxCMvoIfLCBHBuJ2SyOK7t2xY7h06NIuCVQiiCePTBVeDfyeYaTylxASB3RGFiP1j5iJ8C5jEj51MhVrDmBxDi3WQue86AogSRVYiZKVI2iVHxTn3K+eGCgZmnFxPsOf6W+Hn3dj5ra+WCkfM5+QnGSpvVYk2lnckV+BG+uRh8oQdPyHfhUCod3t4tlT396Bq0aEBSOKF7aX5c5woYcFuLjVOWwPwR0F/McprPz2Y/5C3ColnA== 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=0IV//EdgGByvRtKbvLoHynbxEW/SMWswnYjQkG4VShQ=; b=GLXIn02PsN+LwIGw71rduu5txrbSXqha3OTKwm3lRmpyuNh+AKJbxTQ1M9PAtrUndilMJK8TbxC4qm2VKCvxhvVnTjogzAR2xYL74w2MN1fux56uHsQTEEirROSP9iFfzOwpN/Q0IdmheeeHkq0/NVXlsNcIukhPKnMSayqvKcc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PA4PR04MB7726.eurprd04.prod.outlook.com (2603:10a6:102:ea::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.29; Sat, 4 May 2024 00:41:18 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7544.029; Sat, 4 May 2024 00:41:18 +0000 From: "Peng Fan (OSS)" Date: Sat, 04 May 2024 08:48:56 +0800 Subject: [PATCH 03/18] clk: imx: composite-7ulp: Check the PCC present bit Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240504-imx-clk-v1-3-f7915489d58d@nxp.com> References: <20240504-imx-clk-v1-0-f7915489d58d@nxp.com> In-Reply-To: <20240504-imx-clk-v1-0-f7915489d58d@nxp.com> To: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jacky Bai , Ye Li , Dong Aisheng Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Abel Vesa , Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714783747; l=1147; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=/EJNZA8jzAtJukHgOj2MT46tK7VZuwWKGrAynGdc6BY=; b=v21z0ZYsAPEAg8oXVf0AFWhYjB7qV1FmF/vTgvU6W7PnYD6JYU+/Ppjyes/fcKEHKD6cxOnNX vAlOSj5j3FzCth6Z+UOmmVZNbAkPR/VhJ+blpuAaiZPGMLjDjCdoeri X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:1f5::16) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PA4PR04MB7726:EE_ X-MS-Office365-Filtering-Correlation-Id: 3225de88-7b54-43ad-78d6-08dc6bd2e986 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|7416005|52116005|366007|1800799015|376005|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8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1FYcVh2d3RkYXN2Y3lOZkRT?= =?utf-8?Q?n8G7wOIcEZDusw00xZZo/3+eG74siph9Q91DU=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(52116005)(366007)(1800799015)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TnJ5eWRGNFVtaUNkVFppTWtuNEkwbGtDeml3eDcxSW0wVEY5bmRyeGxoZGFh?= =?utf-8?B?SGM3bDd3S2p1V0ZOMDlpVWVlOVkxRkV1RDBkaXduZHVQWHBLSkRLNWZZVjdG?= =?utf-8?B?RFhqclRsTStIOHE4WndPYW5BZFl3dUt2ZU5lUGR0eFJJN2RuSnFXQ2pudSsy?= =?utf-8?B?ektZV0xyVWIybzZSNW8yUng5NHZDUDh5bG1zTzlSVGZiSWwwRHpvbFFCd3lS?= =?utf-8?B?MXRlR0puM2o0QW9RYWN4Y0dEckdueDJ5dU9aY0lYWVQxWVVzYkwxK0VxTW8x?= =?utf-8?B?RWRMV2pFSEUzR1ljeEJVenZJbjJLWFhkYUozL25yek1kdi9rcmNpdUNQNHNY?= =?utf-8?B?VmpLNTZpNTc5WjJIVVFBTVlKdXFHejkyemwxZGEwaFBrVFRWdFVtelRMZkJO?= =?utf-8?B?a2hTck9rSXV3SWdSN3NDQ1VWZXpjLzFNcUtFQnNGaGlkSlFydHpNMVI0K1Ey?= =?utf-8?B?Zm1EUTdjeXZxRkRwSCtJZHl2VDhvRXJnaGhlTWRHMm9uOHpMbi9hblRKTlIx?= =?utf-8?B?NkxIS2VSdWpuQUxucW9RRHNaQno5a2Exb3UyR2c3eE5YZ0owSE1QM1VsSG95?= =?utf-8?B?VURiTnkvZ0ZpaDZ2UWd0Nm5S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cE53N3FHWUZ1ZHpMbEd1WXpKdjZqQjltbUFFNlJ2WFFFRTI1?= =?utf-8?B?TFJpeThYV2RiUlZhbit0dFJYR1Z3a0xzaFJ0Q2ZoZ2JVbWk4UzZiWnBjQnBH?= =?utf-8?B?bksxMnlGYjBqWW16QXFFc0twMit4c1hVVHVlOW5lM2NiZXMxZldjTEM4VXB1?= =?utf-8?B?eW5QcDNXKzVHbzZ6bENLVFprWWZocEJtTkFaMXQwUHc5ck4waG5oZUROOURZ?= =?utf-8?B?UjFZenMrU0FuRzhNTENmUHpHc2lFb25SSHJrcnZmTHNYR1ZqSlBWUVh1MWR2?= =?utf-8?B?aDd1NXEraTdScnYrVFcrY01hVStySmlyZTJSQTk5aE16SVNaNGM5NHFnSmJl?= =?utf-8?B?RStOb3BTcHVIbzlyS1Bjd3IyTzB4Nk50anp1emxMckpHbjd1N1l2ZlhUanU1?= =?utf-8?B?NlpjQ3pIaXRxUEZDRUpxVGZUY3I4di9obkJrQ2tYaE5iKzQvS1Y1L0dkcmtt?= =?utf-8?B?QzVpYk1tRVlVN09rbzUwQ3JJM3I0Sk1qcEVyZjVNaTNXNGlnQ1dhWFFwbjNG?= =?utf-8?B?SmhaeUdxa3FQc0ZQeVIyQkVNK21makltUUNEckdSQTdUa28weDA1STluZVpK?= =?utf-8?Q?vRjZMPwKNSXYNwTp1/6Rb7Qoz?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3225de88-7b54-43ad-78d6-08dc6bd2e986 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2024 00:41:18.5745 (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: 8JPviVk4r5sNokSbVKuWCiYn4ZcST5W/Ck+3pbR9PzVk1k9bRhkVys0m7wm8zsCwIMz4ak7TQ9tb+5gwAHITHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7726 From: Ye Li When some module is disabled by fuse, its PCC PR bit is default 0 and PCC is not operational. Any write to this PCC will cause SError. Fixes: b40ba8065347 ("clk: imx: Update the compsite driver to support imx8ulp") Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/clk/imx/clk-composite-7ulp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/imx/clk-composite-7ulp.c b/drivers/clk/imx/clk-composite-7ulp.c index e208ddc51133..e70a03e7299c 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,10 @@ 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)) + return ERR_PTR(-ENODEV); + if (mux_present) { mux = kzalloc(sizeof(*mux), GFP_KERNEL); if (!mux) -- 2.37.1