Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp975255rbb; Sun, 25 Feb 2024 13:00:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUlS9p8N4vvTj6sEywQerBQwpYE7Q69MrTkojq1Awxz6dgSia4N3CHPQ/7oDuWvzTYDaU3JjisTH0tEDt3lZTgZkCT05acVxuGvV2lc2Q== X-Google-Smtp-Source: AGHT+IFd0o1u7dU6tSiF0eGKNL9B6n1TsvtUFHbVCQ0MXS1mcTqdpGmXk0FBsuAYHCOCkKs6lKBk X-Received: by 2002:a05:6870:8326:b0:21f:2a0:17b8 with SMTP id p38-20020a056870832600b0021f02a017b8mr7139079oae.6.1708894842951; Sun, 25 Feb 2024 13:00:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708894842; cv=pass; d=google.com; s=arc-20160816; b=ETZEJWibCLoS0iirinavKpdezOrOvXViXh8NjQRVZgYhW64eDKVsuQPHI5SqgkYkVX 8Hr2dqwdDrOdqdBPciAYBXGWGrfZotK83+UduX86cAUf5ssUw+F7nKuZqq2h6YFCeJy8 9gQm3o0584OFt/UYfCfyh0b/psQgc11Vw+AgX5oiKC8FhDuI8vwhd7Er/O7xsmuVE//O Jxbq7HWNXl3fMaiaOgZH4ZPYlHyRJxavnwYb1bMwE8vdp7pw1f2d+8X5kkyeDasDUkPd nD90nXsQf04G/ri2Odp31/nxX+5qTjZ4jWV/M9MprwmwYbUgyinE9x36KRoo2pgS41ZK j/Mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=xgGCNw14CM63x3Ljb6h7tLbgFJYcbu+B0DpPVMSSl9o=; fh=4wGC4R45HsXklaNVfmxDy0/5AJm5VM7for2xAIac9+c=; b=v6kuiILN21ezw4gQuMYCkKosMAxsYCsdNrK7ZPVdDVyUCDiUT30gBbLK385ueL2uMG GJqNvYXAqAQdhkJOn5Ox8JSZDNczPVj1F8g9QvOdl6BubuBUO1FtDHWBLBGwD9PB8Uv0 yQPcSkAnuH5TMfDCEVxvsKx9zlLYZkivCUSXJ9uk16TnPXTCHGFYalt88M3v8nUZid9T hPIsMtlUppJ4thTi11Lfiva3PvKJNE5s4AoW8y3STe+E8aKVhQfTAAiH7c0PZigtiS/b ildIeZUhQ6KsSUqwgo3wK0rNeOQLjHpTG1qo59uzdq6IH3I/YhC9g7ZZQhi8APBQSSRV Yqrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cL0DCeNH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-80292-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jc2-20020a056a006c8200b006e5060ef4ddsi1679624pfb.33.2024.02.25.13.00.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 13:00:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80292-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cL0DCeNH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-80292-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 E37A7283262 for ; Sun, 25 Feb 2024 21:00:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83FBA12E47; Sun, 25 Feb 2024 21:00:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cL0DCeNH" Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29CE71B946 for ; Sun, 25 Feb 2024 21:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708894831; cv=none; b=r2o1K7jsOGLvx0KEF0wS6litMZVHqCbezyZ3//FUrSsVemexBUW3O6OHDhLff71eJdOVtxlOyxLJ0A2YRrO7CAusfSzZjoYWYRzfJVjK2ekMbABNYU9aa8FgCBQ0U33FAtC+1HFpzL3XbFJQrwRubegE7b0uUn1JWqD3SGTiSuM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708894831; c=relaxed/simple; bh=pO/fjfqP52luWPyzHvXMSRdec7CH5CUXt6VU7mcGtoQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=e3QPZbmQtd73ubpm5lZosP13oFFaKtXIGRg6FXPQmemsJlCwv5PDNfu5xfHheJ2psPvwkxDA14moXFzau30e0tosmlfrmQv/4Qpfk0VeJ+PxhWpTvq9QP4IcYKkq1vOOvuOX94g5YNW5Csg3mQtptX41ux3YdNDgHJwjNY3P9cs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cL0DCeNH; arc=none smtp.client-ip=209.85.219.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-dcbf82cdf05so2490902276.2 for ; Sun, 25 Feb 2024 13:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708894829; x=1709499629; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xgGCNw14CM63x3Ljb6h7tLbgFJYcbu+B0DpPVMSSl9o=; b=cL0DCeNHmaGgHTSr5ThlOtkdmt5076ISlLNRlPumuvDFZZPsgGyTngH6VAH5dRNPss dtel/YGBzsp4Q+jtVK1DyQ5e0YGaRRExLWqj3K3+UuRdVuXIJxKZUwYGkY3xowweKwZc EC0nMdzDHJDjUTyzFRh2tiX1yVcrvfxxLQwonWZwh1qscokStbe2wJE/KYFIkAjEr6LI yVHIK3qkQK6T6nzM3QC9fIdNOy9BtBtvSF/pPPsrTioWcIUBVxPmrtbe0mPLBuczZOG+ pHeUUAruEZ3qBinJs6LfLzNZKXcLXXqQ6Q8paJ1cSezV+RoJa7ZI63HdIjyjCDhwJTzi zYwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708894829; x=1709499629; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xgGCNw14CM63x3Ljb6h7tLbgFJYcbu+B0DpPVMSSl9o=; b=AASab1ibjncSkwWBHmJoy62tTl2UlmyZLsKKTSHpEjgjC+DtE9V6t+mTIom5pBpBPa h+MbTgueQ4k6TtZypye1FakZ2CSs48d+mjCvPyH/qDQ1CHTrZrSM6fJgUSoh6qz+lVyO ismxfJsUC9nQ3qXlVhr2AsKy6ItEv9kbBTfbhocyf1xfTq64F3wV4ZAOWI5DB5qjJoLq PjQqNrnkuG5xuxZUZ+vkhVs2Hd00rGdhaW+oWI6ZDmoYxtzO4SFuWx3bs3cwAtSsMOOZ UN98C9RR7CjQBsryG33+6OxCmwJ1q/W3phL7UHXi3Hx0CTAgXS5inY+j9AAahAbxBhY/ 05EA== X-Forwarded-Encrypted: i=1; AJvYcCUxtIAMaO3jGjGBP/M8M8oLgG7mKsE40m4/ylX96USuPBYI5HNRzlrRiTHnFRfEq7KxYFFNKGTVjvsGjNoG7BHxd9X0d/wYu1sj5G+v X-Gm-Message-State: AOJu0YxvuTZ1oP3zPPDjal6eO+uYtSYrgUTMJRzU1JYU3xjennemZmoB 4g1XLAo/Bsfz90PSGG+maGHby7Ilb8bqbvQHtQUOhsw+UkX403k9nqL+RkBXg1SadNImkq34E98 YvuXWNfcgdr4nvdbNldLvzmjqNa1a9h5ocw9sgw== X-Received: by 2002:a25:684b:0:b0:dc7:4bc5:72cf with SMTP id d72-20020a25684b000000b00dc74bc572cfmr3218800ybc.14.1708894829190; Sun, 25 Feb 2024 13:00:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240225-gcc-ipq5018-register-fixes-v1-0-3c191404d9f0@gmail.com> <20240225-gcc-ipq5018-register-fixes-v1-2-3c191404d9f0@gmail.com> In-Reply-To: <20240225-gcc-ipq5018-register-fixes-v1-2-3c191404d9f0@gmail.com> From: Dmitry Baryshkov Date: Sun, 25 Feb 2024 23:00:18 +0200 Message-ID: Subject: Re: [PATCH 2/3] clk: qcom: gcc-ipq5018: fix 'halt_reg' offset of 'gcc_pcie1_pipe_clk' To: Gabor Juhos Cc: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Gokul Sriram Palanisamy , Varadarajan Narayanan , Sricharan Ramabadhran , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Sun, 25 Feb 2024 at 19:33, Gabor Juhos wrote: > > 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 > --- > drivers/clk/qcom/gcc-ipq5018.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry