Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2392222lqp; Sun, 24 Mar 2024 17:25:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMYEBNTs6PM56dIy7kr6BAkaNclNnnxGdoc8SU31S0MTdmyhaUsXpPIyZyqQd+PubU5yq6wCZMk0J2TaMLJeB80q37Acs2N1wOpjCDGA== X-Google-Smtp-Source: AGHT+IFZCZVdJfVHr57PtWb3xBF+u0jk3lnN/e0gyIvJBf6orRr1/Nzsm1V3aQMMSPfvEXEPgxbM X-Received: by 2002:ac8:5fce:0:b0:431:4ecb:92ec with SMTP id k14-20020ac85fce000000b004314ecb92ecmr3698189qta.26.1711326358749; Sun, 24 Mar 2024 17:25:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326358; cv=pass; d=google.com; s=arc-20160816; b=kvdaLkXVLjIZbHextGYGOJQY2Rz9XiioZ5kb/6QvgQ0dGZeMLaz4q9l1jAB8wyutV2 VDK+RF9VCWkZ5gfqKupskAoTw1dGJjRmjS0Q4uXiUY6u+e3GLBMRoY4RHBuUzj/gAdfh 85ecLF8KCNnTDI8xpYkB99/48Byk+QsvZjdk3uSXJWI4zJF7e57qQ9LYRxQOQn7wiMMb U5nR3mG8t5mL1Oe8hHzxIOCf0GdVlrXIw/tEwooOervrKBf60AiPoag4eXtUjBQjQGOF 9gLsOeYdNJu20H1h7pBZ/yHwSY4+MfKnv18pjE8fEtypHaNOg7l82vcyYhE+/3B8u6iY gYeA== 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=oxF+OravWqW6GidickdiXMtnkrigQiT4zAxD6yoEyqY=; fh=nE/JInEzuREI4qIRIlczsgmVPImbt4Ae/N2Oy9ytjxs=; b=aKMIUpoe0s9/XouDVNpmJrGrn6FjKpKY+bSy4abLHM4v/GA6TunU5buDXkXxp7teHj HGxold3vFrTM9MZ6RTOlB2v2PstcatdoNv35UibaXxMHvl13GWxFyBJZFPRI5q7f3T39 PLv2uu+FP7ocLRMrMuesnnLbQMou9jsxwxoCxI8v1FZidQh4I+SZ817oG1t7+zgpDUXE h37QIiit027r0QL4GzoLGGzWevDRhh4dFpRlG6m++Q6IJBvxoEGuYqqitfdUmtmW1mXD uDpXDqwUyC5T7lxlXrgOAULWExA9LDaeO/CgSW53r/nMp4U8BqY5P856U96Y1KKyxOnm tz0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FZmIXNyP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 1-20020ac85741000000b0043135a75a54si4427567qtx.281.2024.03.24.17.25.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113394-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=@kernel.org header.s=k20201202 header.b=FZmIXNyP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113394-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6AC9D1C239D8 for ; Mon, 25 Mar 2024 00:25:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2FCF1A2F5A; Sun, 24 Mar 2024 22:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FZmIXNyP" 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 B6B0F6F07D; Sun, 24 Mar 2024 22:43:15 +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=1711320195; cv=none; b=hMwoyAR2LO6qBib0jdY5MHwNc3ySBMBzBuEy9px9GgFthrewF0npEbvjztNlW/SMh/pHzlXkn840BdUYoK5yR4kRcRWNnUdDvxMCh4zByQEdCdgLVnkfHfBaX0GoUWbR2nYIklkYQJP9qp/GgOXAyzWsha02SlmQtwcfnwPiLWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320195; c=relaxed/simple; bh=K7s6iZDEqBncdjY4M9PX3Elscxa3YIEsRcGyrG/j8L0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rabJZDwk6gjYrNjr9m1cdGWHHouNogfUhc+9Vpg3iqpfEUHCkBVza3+ZDDJbYmOCOo8lgn4Ji/dDXrwhre0UjyCPP95KVAMyWj5xG8cjDfaejoNReWs1Ixwk6RStvmfKZDvfs6UgaS0n4XW1KzkOID/XIumXbKVp55WsSLQpmgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FZmIXNyP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C34D3C433A6; Sun, 24 Mar 2024 22:43:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320195; bh=K7s6iZDEqBncdjY4M9PX3Elscxa3YIEsRcGyrG/j8L0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FZmIXNyPdBBERgUn7BXjpDYo3xnvyrSLFdRHtjdcQZYiM6GHD1DmJJ4xeuiCWsUVj 8BaqLo3d7YsUW1zF1Ru0oSwPWaZwX9g9C2BYwUntcLJCFg+qnFzhax+6AEV+shCgOb 5WByUPOraYhYhOXdwlgt0Y12OZGzZrudUu/XFBWaj4OHoF3kQAskyDOprsJBZwmlGk w1HAcsL9WyVTPVCde+t0jbE4NAP0+6mJDr2NjwATf8zB/AIRjDe+PJpba+M2viITZd FQ3b/LxrHPDBn+UFc6wRZcYYqU3MoXMURZnPB5DRleq4cXysnKbSQqEXhgmKuMMdUx R3O1r5muORlMQ== 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 503/715] clk: qcom: gcc-ipq5018: fix 'enable_reg' offset of 'gcc_gmac0_sys_clk' Date: Sun, 24 Mar 2024 18:31:22 -0400 Message-ID: <20240324223455.1342824-504-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 f982adcc1b1c02a3114f68ac73c811cbfabe90fa ] The value of the 'enable_reg' field in the 'gcc_gmac0_sys_clk' clock definition seems wrong as it is greater than the 'max_register' value defined in the regmap configuration. Additionally, all other gmac specific branch clock definitions within the driver uses the same value both for the 'enable_reg' and for the 'halt_reg' fields. Due to the lack of documentation the correct value is not known. Looking into the downstream driver does not help either, as that uses the same (presumably wrong) value [1]. Nevertheless, change the 'enable_reg' field of 'gcc_gmac0_sys_clk' to use the value from the 'halt_reg' field so it follows the pattern used in other gmac clock definitions. The change is based on the assumption that the register layout of this clock is the same as the other gmac clocks. 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#L1889 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-1-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 4aba47e8700d2..cef9a1e7c9fdb 100644 --- a/drivers/clk/qcom/gcc-ipq5018.c +++ b/drivers/clk/qcom/gcc-ipq5018.c @@ -1754,7 +1754,7 @@ static struct clk_branch gcc_gmac0_sys_clk = { .halt_check = BRANCH_HALT_DELAY, .halt_bit = 31, .clkr = { - .enable_reg = 0x683190, + .enable_reg = 0x68190, .enable_mask = BIT(0), .hw.init = &(struct clk_init_data) { .name = "gcc_gmac0_sys_clk", -- 2.43.0