From patchwork Sat May 4 00:49:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13653710 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2046.outbound.protection.outlook.com [40.107.105.46]) (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 A170B1862A for ; Sat, 4 May 2024 00:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783311; cv=fail; b=ZJYYbNIX3SYnX3+vAdSHC4i7cj4URPVFivIYOOW8bfSMAqaOhcftkud1q//5Gtjnwx5s6WVp+ViDvw5aCWPPi6Tb2F0ZhKo1sKKnBXTnR3HMgXspeQOZTRJyFW0+h9sC5aQ/HA+ad1iS1uLJWFJuOQxO1wEicxhhiufIz3E3+cw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783311; c=relaxed/simple; bh=tLECtkkW+6QyL3PUhJSggvizcBd75BZSDPmIpKuwP5A=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=NjFbIwk9UFSMr78L36x7zs61OpIo9RH/YXxMOc+9eWgHQrI+06WoXPM+JIyvxxzsv35xhtSZXKi6FLvjvIpMTNK9SU6A6LpobBTfGhUMIDJoS0HDQEt1o86h9icJoGNOVAGXTxDGI+afYjSHxutcISzPoZyIeNxgXN2xwqQ+j4M= 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=DfHmatmb; arc=fail smtp.client-ip=40.107.105.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="DfHmatmb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WW8pUuRpggT5lWnNz6lbJB3o+3falTynVm3rQVZiSdwUSLvvlaYbhYXIbOMrLeRdoJcPvt5i9jxo1pl5l/TOEC5cr3C5vUQCCBs7W6xqoA9I3vvzKUqkoa7RL7Bxd7FOmj2rVlgrPoJVNTuy0O5hqWx3vknXnl9N0JD736LoFHbc3jUU+kjPeLhP9e3njGZNTaaEkRSf7GTDbJ+6vlnRyvMf1n0ae/5CscrXq45t3l4kck7h3/z+ayrCET+sLPxYXNXgzFNZwf0/ajK5x3YhSkCw5vjlFxP+o5atSRinBTu/+HmFW6hqg08+0t51yomxI9wxKa+Ls8IpXYWflq8WLA== 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=9OzPJY6MhrKeRBwMJ4c5Jo8TCBagIjPC/f80OtesPVw=; b=aYUkEPnumF7JxEkZGZFFI82vcSSh5/+7xo2f5cy2Nzx+4o5eoKdRFiA+mafQwk5WidCZh1jOddDjflSfkovCABQa4hpLGfT17Ysov7LqYfLCjhDnsImo/CZQ8rtGaDDPmMUK084FJSGDuFwS40s6KjtG/dBhl9iw5RfuPKsuYtqyKpE+zc2muRXleDg353bt6m6hQGBhLh82JNdFdMaOzfZFlQAea1IacfdNIF8IxgcwaLvs4vQj2kfv/bFhozaSNY0G07MvnHAHzeOa9IFa5wQq8eyzXshIVdlaxrqfci53JOsruXdswJAqz6dl3RFKzinsP7w9rjTPVTGuKccq5Q== 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=9OzPJY6MhrKeRBwMJ4c5Jo8TCBagIjPC/f80OtesPVw=; b=DfHmatmbQepZANyrzQCyvP+CLDpqIXdeQgedaZyHqZRl7JjV7WS3OoVVMCpC5+cD5AloSsTHi6T0AyGKk3IvRzTL5L8wwVuj9wxibX+Rm/xDM3kMQ0MWlIRonZwzOO0Ndv6g+m4jLJqWqEebnJ26NINkHepsxg/qmVnkGKEUkV8= 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:46 +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:46 +0000 From: "Peng Fan (OSS)" Date: Sat, 04 May 2024 08:49:01 +0800 Subject: [PATCH 08/18] clk: imx: imx8mp-audiomix: remove sdma root clock Message-Id: <20240504-imx-clk-v1-8-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 , Shengjiu Wang X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714783747; l=1096; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=Vumz2WhUTnYw3jXu6uujQOaYqm9Iyxa5sjcrHowRiQU=; b=Bki30aQJD3H5s8X8NOe1wqAOXxF0N4CbJPsoqRYMsECz7I6lTLFqg4wyWHDrn4ahF+Ue12WYH gueKnqzJccVCpJJATjuS+Z3n1ooxAJUeNkMtwtOBrCW9ZBbiz/Uujcj 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: imx@lists.linux.dev 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: b631d9de-f169-4727-d11d-08dc6bd2fa62 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?q?/WgaNYuKXf+MYXqZeR4NrzTY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?q?u6UiqU8OPJU/vpkXf4/alp4foTcqJpgLXA8dG/nDJ01Xl1sg/GI7RX55/bbxghHRG?= =?utf-8?q?wjGECMU8SVFL8LvfW7IFFKxDBF35lzrFtQSIOCV1G1u3KWOLkZbhO0qnvmYPmKHQU?= =?utf-8?q?r+KgLBsKC5Q27eldCd1acwHwhnuuO5tpTBGWb31fGBFLWMh+1Sf7KXofIriiaqN8N?= =?utf-8?q?cnT2QPMBdiySRfEty/m+YqnVbsERP4iA+F6bwFym4CE+WwlPEpkrwdjtM4o3CCdiu?= =?utf-8?q?HSSFEOAxYHIcwTesFbAWg0PHzdSz0/zbCZWcUMFM7mXQBhSRbxnkaUnuMVGrgcIza?= =?utf-8?q?YEUcSqjXv3++n4WxyHa69GWGeQyQ4hoLx4bIrrFErcRo6dJceOWZ0pI6p3zbBkEBK?= =?utf-8?q?0oLLxbc3kpWf0P+a1c+A7SdBBIFdDfXwuevALKw13+GJWHPwBLz2Z0c4=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?q?1yRbJPPVgYfOrJk+sgfx03nH0X1+?= =?utf-8?q?b3Aoej6yA7pl8XNuugEktmfwwzvGDF5CY+E1FQwPfq2ywQLqCOMVVE9a1KbJ7z+gB?= =?utf-8?q?mK1q/n7A9D/Tr6vG7Gyh4JM1P/1/KzyKpcbZdw+vxX3heIeuE5PDneJYTqpEJt6Hm?= =?utf-8?q?VwDwn4j1yvFZYSmMMlEhcxlqk1GjkImnWX7zMDbZY5Ftwr4WwUJO8ydfOAos/+zTR?= =?utf-8?q?oZpnnK5P3qqsCqNQpgHjTyvGZS23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gNBQNKIelxn1VUgOmcB0Lz2H5+Y0d6?= =?utf-8?q?c8FpzcV0kE1vR7fUnc14KaWRu3V3yozDTZBD5yYrIZKL24GpFY/PKPbcvKjjqEncg?= =?utf-8?q?uMcEP9EdtNgT5u2iazKkhBmCjAZ4af1qtDgqDZiJyciIP24PWXNr9XzQB/ykIA+Mu?= =?utf-8?q?HM18A2RvNoIilmxJVkcra4ba09yMqoID+8wIvDLAneJdjiMPzfhM+cokNFxfGyssl?= =?utf-8?q?DOo/j/xSLmwoSxzSjKMdDYp9iapH2o+Y8n2gbn+dTrA1+d+YbrbzMhzBTJrUGumnA?= =?utf-8?q?z5Nt9u8qzDpIPBIxYPgZrdcHSTjG9t2g03X7IwDE7RVdqTD0R8ZcrgbFbfV1LeTF6?= =?utf-8?q?OfU/gm0wH22Mn14q4Wba0Al1ugLiE1w+1G10uuFjz97HJWnvYePxhth4y/RQIbemH?= =?utf-8?q?gkp4qrGwscdZ?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b631d9de-f169-4727-d11d-08dc6bd2fa62 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:46.8606 (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: vsUdn+hZVzAKzjjslqizJq6faPB5yzcz67POYQaQe6GR8CxbrXAXV/UN2B3BJ5Zk6D322JM6u/W05Pyhc8Prmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7726 From: Peng Fan There is an issue: SDMA3 can't work without setting AUDIOMIX_CLKEN0[SDMA2] (bit-26) to 1 The workaround is: As the reset state of AUDIOMIX_CLKEN0[SDMA2] is enabled, we just need to keep it on as reset state, don't touch it in kernel, then every thing is same as before, if we register the clock in clk-audiomix, then kernel will try to disable it in idle. Reviewed-by: Shengjiu Wang Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mp-audiomix.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mp-audiomix.c b/drivers/clk/imx/clk-imx8mp-audiomix.c index b381d6f784c8..88d8ba975b5a 100644 --- a/drivers/clk/imx/clk-imx8mp-audiomix.c +++ b/drivers/clk/imx/clk-imx8mp-audiomix.c @@ -172,7 +172,6 @@ static struct clk_imx8mp_audiomix_sel sels[] = { CLK_GATE("ocrama", OCRAMA_IPG), CLK_GATE("aud2htx", AUD2HTX_IPG), CLK_GATE("earc_phy", EARC_PHY), - CLK_GATE("sdma2", SDMA2_ROOT), CLK_GATE("sdma3", SDMA3_ROOT), CLK_GATE("spba2", SPBA2_ROOT), CLK_GATE("dsp", DSP_ROOT),