Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2399617lqp; Sun, 24 Mar 2024 17:51:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJNKiDKPPwEXBNc3TrijKXdJbTcWnf1y9RAptIjltOHiILxyq+cku2N3A7v1HtjjV6LnCGgyjPEB+cdpmDj6PSsJoHbAWtesIsjjLVAw== X-Google-Smtp-Source: AGHT+IHht/68vdkL32/SBW7gweNypmOhwfSMy8yIEZj2FCXeubodxSxmvc87crr2i+KlJLAiidkV X-Received: by 2002:a50:9b4d:0:b0:568:b43f:e2a8 with SMTP id a13-20020a509b4d000000b00568b43fe2a8mr3789586edj.13.1711327916778; Sun, 24 Mar 2024 17:51:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711327916; cv=pass; d=google.com; s=arc-20160816; b=WapLjULmtwWW71jF3Zi4Lr5UD+BhVAb1El8st3wXLTfLlBuXNU6Qp5XL/xLByYS8eC Nn6KT9GXXKbVkdJpJhspNqN8b0ukKN/ajlV/w6LdcdcRXAg73OKSvpE/Z63hE7SX2yl0 DnCo9BCC5JR0KVuomtYZKgqWrDsBZy+2arjRzuKeU8Yt9FXaIl/tFWUqdzzgp2XxdUy+ rmM+evgF9BJONNPk4amofqq4Ujcvw8A0Pp1qDcZLuNuvwbcGI603/TU/cvqsF/v1A6Aa 47usQah3CYN/C0vmlT2Y4yzxohfbXhNRWiB6UFgYl5bhcVWoPb8SBhqMJTxhNXS5OgXh kxOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=akFR5K5o1WDsjb0usJnH6U1Yd5fZidZ1rEexPqmelJ0=; fh=lHlVc2lQU3jN99IFBa1z2D/tKh1NRifcCuXcCG/coYM=; b=u+hLLZLndK7x/8AoUL2IhtS+DWjU0cARXmiuB/v30JIM5z6a43y7GDUV/UmGXSp8P4 eplHHOFPG9dMMqdXj313KS/dsNeljJamWs9U0KEAfr5eWonu9PecV2xq28deRHIdmdCD n0NGPIMaoFt+d5HmoLH+P9Mzl+44jvx3yebMp0J0wdJp0/+YDCGetu4DMus6p0hWLVyJ XJfBWv04CIAC9UJtkDQEqx2ZuGEw5qLAlzFQvjFOYM7QJa9REuAaYvsjJgooPY6ihyz1 UGeXDfjF3iyVU9fsKpiAA++B790qOzLLOgVZZFVaHeE2NRTppONb+DYfq3NMQDGxrTQy KR/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=krx4ykUB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q3-20020a056402248300b0056bd13d99a4si2124372eda.198.2024.03.24.17.51.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:51:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=krx4ykUB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A08581F23108 for ; Mon, 25 Mar 2024 00:15:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BB83198A17; Sun, 24 Mar 2024 22:42:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="krx4ykUB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 67A5C1989F5; Sun, 24 Mar 2024 22:42:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320148; cv=none; b=b4ajAQx/Ayy1VUlqLRFP/UT3rs1cfc43WIbXsyTAUaWA/eeinEgvbpDacjkVuixVCXkcScwKgcB8boPoNwlyy9959OAqD+UMKS5Iigt9SqzsXepYmn3mR9Qa6TsEhnMFXDnk49YlGkdaWcIrw2OiplaSiYmNZvD2aemNS+bRKgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320148; c=relaxed/simple; bh=9EArykFpEIy/MTPK8XwsMVYLwhLAw0osXCOlEx433lU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hOFITMgSpCt2oYlcFyxc9Od5X8OCtOwKOH0PPbD9opXMA7pAmTbJr8tlaLTMZ2GJ4HxMlDmerYkgU5xymNVK7jbCKlHgaLDwIAQWZI5iP0opl4EfPe9L3UZwBTm7+150Q7sek54RaFTlfVtYiZjs0+ec/8rRuxkf604SOB/FAiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=krx4ykUB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E897C433C7; Sun, 24 Mar 2024 22:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320147; bh=9EArykFpEIy/MTPK8XwsMVYLwhLAw0osXCOlEx433lU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=krx4ykUBl2Kgd8C7ytAa1VScld49j9hC8DCBLiBdwOOsJ5dZo55X1FSrzXmEWBZLi 6JITde1qgbolC1NjebyT4SF9w2Aw3VNKxSh0d2Dh5PGzzA4hj8Jj81CrwAEQlNwuEe 6s2yb0ThK70a3tAJGLVEejlhynNHKXTk8PLLlf6ifOLJudPqmMqCNm6qusVCzydU8M 8QNF83t/g58vqmDDffkFiho1guG/6/7SQZaHwaP22CA3U5zTBPA4E8ugxI3oS6Ng9L EQ4DuYd//BMdyX11ijjWhs9AWqU+wBJASQkCE0BJs6elNaVZfphdmjHvVTTxWC9f+v K3PC6/sSA7Pqg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chen-Yu Tsai , AngeloGioacchino Del Regno , Stephen Boyd , Sasha Levin Subject: [PATCH 6.8 456/715] clk: mediatek: mt8183: Correct parent of CLK_INFRA_SSPM_32K_SELF Date: Sun, 24 Mar 2024 18:30:35 -0400 Message-ID: <20240324223455.1342824-457-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Chen-Yu Tsai [ Upstream commit a65083fa663a335008e34f65e184041174a9dc7e ] CLK_INFRA_SSPM_32K_SELF has the "f_f26m_ck" clock assigned as its parent. This is inconsistent as the clock is part of a group that are all gates without dividers, and this makes the kernel think it runs at 26 MHz. After clarification from MediaTek engineers, the correct parent is actually the system 32 KHz clock. Fixes: 1eb8d61ac5c9 ("clk: mediatek: mt8183: Add back SSPM related clocks") Signed-off-by: Chen-Yu Tsai Link: https://lore.kernel.org/r/20240219105125.956278-1-wenst@chromium.org Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/mediatek/clk-mt8183.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt8183.c b/drivers/clk/mediatek/clk-mt8183.c index 6e23461a04559..934d5a15acfc5 100644 --- a/drivers/clk/mediatek/clk-mt8183.c +++ b/drivers/clk/mediatek/clk-mt8183.c @@ -790,7 +790,7 @@ static const struct mtk_gate infra_clks[] = { /* infra_sspm_26m_self is main clock in co-processor, should not be closed in Linux. */ GATE_INFRA3_FLAGS(CLK_INFRA_SSPM_26M_SELF, "infra_sspm_26m_self", "f_f26m_ck", 3, CLK_IS_CRITICAL), /* infra_sspm_32k_self is main clock in co-processor, should not be closed in Linux. */ - GATE_INFRA3_FLAGS(CLK_INFRA_SSPM_32K_SELF, "infra_sspm_32k_self", "f_f26m_ck", 4, CLK_IS_CRITICAL), + GATE_INFRA3_FLAGS(CLK_INFRA_SSPM_32K_SELF, "infra_sspm_32k_self", "clk32k", 4, CLK_IS_CRITICAL), GATE_INFRA3(CLK_INFRA_UFS_AXI, "infra_ufs_axi", "axi_sel", 5), GATE_INFRA3(CLK_INFRA_I2C6, "infra_i2c6", "i2c_sel", 6), GATE_INFRA3(CLK_INFRA_AP_MSDC0, "infra_ap_msdc0", "msdc50_hclk_sel", 7), -- 2.43.0