Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2394298lqp; Sun, 24 Mar 2024 17:33:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSyfSHlmS31zwKlv4XcR6mMmSmQx1lMK+kgzKnFtxGMxbtrr7mu/gG4sCclsvEWwmHcIcOsHeou44w78Pk2r7QJC9gvVZdrXDj2e1sQA== X-Google-Smtp-Source: AGHT+IE5Fba0cWDDEFldFbCNnz5UmYe2ZUcl06OgsPbXhyAvwheAihXHDVLDqlnu/wTHzPnYpCw/ X-Received: by 2002:a17:90a:bd08:b0:2a0:36fb:5cc2 with SMTP id y8-20020a17090abd0800b002a036fb5cc2mr3770335pjr.14.1711326788804; Sun, 24 Mar 2024 17:33:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326788; cv=pass; d=google.com; s=arc-20160816; b=gHr6o+qJmWIIIXrqmQgxHhiv/MdYiRdPM4ayYPgwMD9wc3tkkeS7PFgQ5kQ2XWH+zF 9cKcyXFZEpKx8xtdJBB4yWAal445em05+gFc78tuCo/fupVFs5ncnA66WCG0VoNQ/6on Rx+gvf9Tp/m2QiMJdX1c7gPVA+H/iXKp3oMl9m9pMTUNhXDtdiX8ouaweHIOG7cNxXZd fcxtOeLaUxvr2UEEMJNOI7LJ/on2PoKnDBcpIArgBmxYIMsKet0ozctTahanVVDQriNg oi0ObfYH2OF9VRnoceOYUUFygK6oByRp9ZmBwoJeTLXen/OM6yq44lJ289/jBiryQkdb tVyg== 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=4BLagXRp7QOz/Q4kAWMqRsvOMsqdHL7BVYIxTZ2a/SM=; fh=nE/JInEzuREI4qIRIlczsgmVPImbt4Ae/N2Oy9ytjxs=; b=RQL3+y4WFw15JvH20G8mgAs6o80mEe0XHoqZFQxxSZpm5lx3jDQRX1Pcl0nBgzPy1C NIxCpmZfRIA6aNq2i1FMt/NW9Duu96aL+VVb/L0FoAQjwQkYWpKlz1XsI2XYh4+ZplGV W+aaoaTlevvybgel/XdIHVMxV0fOVd33c7/T2Ks6KzL4N7HDbxrSvixks9LvSL2UKGrf zPbK8oqrgH0w2dXnO7RX9Gdg+avy9eprstAh7equoNILu53t7A6P7BbsXSWJHr1HaVfb KxFNHF5BCNQfpoREp3IDOgVPJrbnPCbPZ1uVTlXj8od/MjiPlufO7q3kQdUjKZ7An2zZ rv0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J0Qw/YLE"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113395-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w7-20020a17090a8a0700b002a067bab791si1588223pjn.182.2024.03.24.17.33.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:33:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J0Qw/YLE"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113395-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DEE5E284CF3 for ; Mon, 25 Mar 2024 00:26:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE2C81A2F7A; Sun, 24 Mar 2024 22:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J0Qw/YLE" 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 C902C1A2F5E; Sun, 24 Mar 2024 22:43:16 +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=1711320196; cv=none; b=sM62Nux7CdECoMsEr2CYXVUvPrUrENY9GsCx6kshr+vBTKuxTxzywxlkDAs9pFZSIX5iwGC34jnv5FKSMD5qTrLMtW8gS634Q6VZrF5L7NTflZVACG0r3NRfVnMegFRlv5D5KwSNJQzNV4i4Cc0nkdnm9St/OBYyPiP3fktNlHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320196; c=relaxed/simple; bh=uudrhNqYTKl+5oPWr560nyF2+A8KIYZ0yK+KN9k+7a4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eLyC1/uS36tBhXfdG4zLoIp2znLRFN2u7uKJusjFqB/aIAclJobvaLnh5G0qGl072xhZ0RT/b8Lc5KTxzDDsxagD/MKiJXzhk2x0Y97kX4BrWgYQWKvq2Lg6faf68PQHzmzlKZwyPQI83MZcNScCAKgAgsBn+UAA6Yo3CbV/64k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J0Qw/YLE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB1A0C433F1; Sun, 24 Mar 2024 22:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320196; bh=uudrhNqYTKl+5oPWr560nyF2+A8KIYZ0yK+KN9k+7a4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J0Qw/YLENunKE7zZU5TGKIa27aHLfBdJCvOeCJiVRxFZDQ3FzBqpigZjSr3AnNnHT q3/AWBdSZI9ckw0WNWbvE7dOpIMJ5F6xUUOk3ffH2ncuk0wEGJnfFhHXFD1Igo1EQV keBZrT5aUDk1UYFUblkFxAqC02bsKBRBzDjXkPqaGQWY++nhy+z7gRoVURH4pmN5Xg m4qfus1AmjqnjGOIwet3QcrVje8USfJpMtb5guGlKL4nPJV/SL9AUp5Bpx7Oo3RfdW 2ukIec4kyn6cTe4OemKUMFtvmo0PZmKu2gh9mmSJVdVT0WccOCN33NqgMqMpnKiMPF r3EMMU2qgHLzQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Gabor Juhos , Dmitry Baryshkov , Kathiravan Thirumoorthy , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.8 504/715] clk: qcom: gcc-ipq5018: fix 'halt_reg' offset of 'gcc_pcie1_pipe_clk' Date: Sun, 24 Mar 2024 18:31:23 -0400 Message-ID: <20240324223455.1342824-505-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: Gabor Juhos [ Upstream commit 11b752ac5a07cbfd95592fac5237a02f45662926 ] The following table shows the values of the 'halt_reg' and the 'enable_reg' fields from the pcie clocks defined in the current driver: clock halt_reg enable_reg gcc_pcie0_ahb_clk 0x75010 0x75010 gcc_pcie0_aux_clk 0x75014 0x75014 gcc_pcie0_axi_m_clk 0x75008 0x75008 gcc_pcie0_axi_s_bridge_clk 0x75048 0x75048 gcc_pcie0_axi_s_clk 0x7500c 0x7500c gcc_pcie0_pipe_clk 0x75018 0x75018 gcc_pcie1_ahb_clk 0x76010 0x76010 gcc_pcie1_aux_clk 0x76014 0x76014 gcc_pcie1_axi_m_clk 0x76008 0x76008 gcc_pcie1_axi_s_bridge_clk 0x76048 0x76048 gcc_pcie1_axi_s_clk 0x7600c 0x7600c gcc_pcie1_pipe_clk 8* 0x76018 Based on the table, it is quite likely that the pcie0 and the pci1 clocks are using the same register layout, however it seems that the value of the 'halt_reg' field in the 'gcc_pcie1_pipe_clk' clock is wrong. In the downstream driver [1], the same '0x76018' value is used for both the 'halt_reg' and for the 'enable_reg' fields of the 'gcc_pcie1_pipe_clk' clock. Update the current driver to use the same value used downstream as probably that is the correct value. 1. https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/blob/NHSS.QSDK.12.4.r4/drivers/clk/qcom/gcc-ipq5018.c?ref_type=heads#L2316 Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018") Signed-off-by: Gabor Juhos Reviewed-by: Dmitry Baryshkov Reviewed-by: Kathiravan Thirumoorthy Link: https://lore.kernel.org/r/20240225-gcc-ipq5018-register-fixes-v1-2-3c191404d9f0@gmail.com Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-ipq5018.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-ipq5018.c b/drivers/clk/qcom/gcc-ipq5018.c index cef9a1e7c9fdb..5e81cfa77293a 100644 --- a/drivers/clk/qcom/gcc-ipq5018.c +++ b/drivers/clk/qcom/gcc-ipq5018.c @@ -2180,7 +2180,7 @@ static struct clk_branch gcc_pcie1_axi_s_clk = { }; static struct clk_branch gcc_pcie1_pipe_clk = { - .halt_reg = 8, + .halt_reg = 0x76018, .halt_check = BRANCH_HALT_DELAY, .halt_bit = 31, .clkr = { -- 2.43.0