Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp101997rdg; Wed, 11 Oct 2023 23:12:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMPcx1V6Yc9nBHpLaqOebl6X09B6Wg3qQ9jpS3ss+kOoVCT0/7BFjtptnX/gz/7YDr8vKq X-Received: by 2002:a05:6870:b90a:b0:1e9:af81:54c2 with SMTP id gx10-20020a056870b90a00b001e9af8154c2mr1482729oab.45.1697091142301; Wed, 11 Oct 2023 23:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697091142; cv=none; d=google.com; s=arc-20160816; b=u1BVtbi5irmKX7vdinLaCHUS++lTiYfI5JFzYZ6Wi09xfstQ1fZYvPtF6WVNQjZLWm +fl7+QEd+vn25OEk+PuUrdBJB5fjvRE9vVNdEQQPjdakEUGMToMFHAdHAtjLvY0LwI1K EkRBK5jMbjeJyRD8lllOShIqVwXdbd/h2nVbdy2FzF7DiVT8+fdwtFRgO6877DWIFrJk zDceesFOCntb+kjQai+1gSbyWJx6IjaV0mj61vNH+0WUwJjAKUuT6OlVZ+qpDUO44hEt uji58q71p0VIET658yzL4BUOwkVkkZYkNbNtmaf7CWGGQetcm2hq4pgS/YWdd7Q6GHqc /x8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ppJ4B6wV6jTM0MQAXJ6iEccEpXewdAwgjdYWp9JmggE=; fh=2PBOMSM8jJvFISF2rY7GwXZi60Snb69Zhik5B3Q6QgM=; b=ccegTwSB97X8lL8aVGJyCupN/QQFbav/H9lr2hBa1979u8knMHqlSKURjq1fLqvK6a ItOMUNL7o5IOkVNoYZ3f3sfahU1BdFKL22JvUTQde249hIR+EKdWrP4mKCEu+8qRT822 Z8DMQ4XPizK8ekHfbPoZa3Nc01lG6hDmZU1WGTJCAm8yvmTeqaVqrb7afqvP8S3O8Hun 8M/dtxN50e6KnG1027BuV+beWL9AxsmxLDIfq05DoblqHVKEMqB1c1oXMnyEKgiSil9b t1ZDxMVMu0dppTwEFuUge4CTW4xQ0Lx9Wf7d7fN5LkazwFwAz9hB7vfJeTkfrVDMzoWs Wz1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DY0WuAs/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j191-20020a6380c8000000b00588eedb3054si1500256pgd.1.2023.10.11.23.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DY0WuAs/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 27711805F096; Wed, 11 Oct 2023 23:11:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377221AbjJLGLn (ORCPT + 99 others); Thu, 12 Oct 2023 02:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377184AbjJLGLm (ORCPT ); Thu, 12 Oct 2023 02:11:42 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09954A9 for ; Wed, 11 Oct 2023 23:11:41 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-536b39daec1so1029159a12.2 for ; Wed, 11 Oct 2023 23:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697091099; x=1697695899; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ppJ4B6wV6jTM0MQAXJ6iEccEpXewdAwgjdYWp9JmggE=; b=DY0WuAs/1SI8stz9m6xzTHlx7fLFUMRWjBVTHwGY4EVA4Zt8y5UZWGqtwLkd4oNdOs 5/Da0qZB56JrPfXIRVW9ydhrdjajSh59+fF+zmqvYPk/Qj3GvcqJo2YF4VcZ1TXBH/Uw dFyEjIBgEbqv2LJXqfj4bciCLeR210hGtWWBC6mjQFTcvB1AbnZr2ut9ZzbHDJ7oOKuz OaT3TN+i2TxAzWJ0dn16FON+Fv4xSnl+pvDyNJHAkdkQmsBqfh9s2r5xG//08sgCC+Qe 9shcPtfnH6LzFL5IDaF5N25mL+BKUM1uWQIRT3qR2n/vSQ7wqoaCwTcUd5XpAPArsNZN 5Ztw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697091099; x=1697695899; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ppJ4B6wV6jTM0MQAXJ6iEccEpXewdAwgjdYWp9JmggE=; b=XSqXJAVAHubnWaKw48EP19DcbTNuQRXu+8EeQztxnLuwT+QfwHSkgjWRtPY75JYWsb djECrDzXgXSqSrWZE6JWuiheXg19KqmObfjXD/MtrUDZalCTFpKYutrG1y7MAp/cUoBA oVmfIp8lw+5bor4X8fRlX+NSlvInIgLwMlqrZby5pENQ+ug1bBYVeuvD7sC3Bt8waJym JmCvEFgqAU/A+CqoLaq29DN0/ssBAC5Nb7VWmOIekOBbmaTc++59cDzHluv93CjizqGM +wYI8SfEVd1bNmfhT+sHjF87JEClfWK47vLhn/QvgOi89rSsB9otl4Oc2n9ozLeiIsFs A1EQ== X-Gm-Message-State: AOJu0Yxlxc1bIRCTbcAjhKjIqud2JCxUDac3CrMP4iy6fMXsgxPiZxz9 bw6hlb+HUCQ6P0XJWrBtgcSUVg== X-Received: by 2002:a17:906:5188:b0:9b2:d554:da15 with SMTP id y8-20020a170906518800b009b2d554da15mr19095179ejk.38.1697091099414; Wed, 11 Oct 2023 23:11:39 -0700 (PDT) Received: from hackbox.lan ([79.115.22.174]) by smtp.gmail.com with ESMTPSA id s10-20020a170906354a00b009b2b47cd757sm10605730eja.9.2023.10.11.23.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:11:38 -0700 (PDT) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List , Avinash Philip , Umnathi Chalicheemala Subject: [PATCH] soc: qcom: llcc: Fix LLCC_TRP_ATTR2_CFGn offset Date: Thu, 12 Oct 2023 09:11:27 +0300 Message-Id: <20231012061127.95637-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 23:11:49 -0700 (PDT) According to documentation, it has increments of 4, not 8. Fixes: c72ca343f911 ("soc: qcom: llcc: Add v4.1 HW version support") Reported-by: Umnathi Chalicheemala Signed-off-by: Abel Vesa --- drivers/soc/qcom/llcc-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c index 674abd0d6700..fb4085b7cb19 100644 --- a/drivers/soc/qcom/llcc-qcom.c +++ b/drivers/soc/qcom/llcc-qcom.c @@ -47,7 +47,7 @@ #define LLCC_TRP_STATUSn(n) (4 + n * SZ_4K) #define LLCC_TRP_ATTR0_CFGn(n) (0x21000 + SZ_8 * n) #define LLCC_TRP_ATTR1_CFGn(n) (0x21004 + SZ_8 * n) -#define LLCC_TRP_ATTR2_CFGn(n) (0x21100 + SZ_8 * n) +#define LLCC_TRP_ATTR2_CFGn(n) (0x21100 + SZ_4 * n) #define LLCC_TRP_SCID_DIS_CAP_ALLOC 0x21f00 #define LLCC_TRP_PCB_ACT 0x21f04 -- 2.34.1