Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp413048rdg; Thu, 12 Oct 2023 09:06:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+Ee9pGWKs5XJQOHrhjsEH3fRUjp3Fe90k7lcij4DX/Vf4fg/C55UEEg3IxGBzPaY/x8Up X-Received: by 2002:a17:90a:a018:b0:27d:c2d:94e8 with SMTP id q24-20020a17090aa01800b0027d0c2d94e8mr4801842pjp.28.1697126806667; Thu, 12 Oct 2023 09:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697126806; cv=none; d=google.com; s=arc-20160816; b=HMFcMCC/nkLSC2Eh53YX/guhWEGWYRBqPMBrDZJxnMFVASGJTTpcPcBWDYtyP9Msbn jj3T6VNNZ4Ve5qDUnvRh3lMSCPO9T3WQxbovugIbZWjf8Ko8rAeXIW6co5mMQ3KSq8PL /ntTts1dui4kVcgy4dIFyq4s/Pa+jO4iltzc6sRnXg0PpZq2cBZgbn2kcsxIBBGQIKkt PWudH0Im+KEiTxpZ1iIXaHS+E2BKvqBlHStAQt9F995WaYW2Muii0pfcS8uLBCFDK7qv /YWpZtaMTYppzzQHeOg0shpGBXI3lS9gsaACRo9z/TfHN+T5KEOX6ekHk72FeHvie/Yq wVHg== 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=h51OwobaWmMhVpSm7Wk+pDxKsEdIOYAESioL6so1I0s=; fh=MWfyb5s8WO0Qha1ewvG1xbjlPqzt1+HshNSUJ4GCqoo=; b=G986mwpGPGXEJFlkq9SMPIXkMYWTbpUd9OM/MGYQGKNwR0R5dxo6xy+cRR+EgCqlA/ KGsoKDDw20143ygWfVEuX07IyYDeR+N2MSTEM0O/FvDbhKlnv/Em6HNzxBE0NCGNMs5f JHEdFRzU9rLKg7Y3hkaKQI743UryA4nL4bQ0xrls/j9xVySi45yRz0hHOAtHWV3ZN1Gp Y691NFwSpMoXqF8PUWIEQUKhElr9imoJMwXgDo+uNOOW3AdlCPw8zY8Fyi0ooqolauwT EkstmvcoYMYYi0rqvbXA6ET7F5QfEEmz6ge42SeivnH0CEOqFXBDrLJllyU7glFQ4Il2 rY1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uRFtU8k0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 19-20020a631753000000b00578a43e3b0bsi2585090pgx.655.2023.10.12.09.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:06:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uRFtU8k0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 24C208076D00; Thu, 12 Oct 2023 09:05:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344056AbjJLQFV (ORCPT + 99 others); Thu, 12 Oct 2023 12:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347288AbjJLQFQ (ORCPT ); Thu, 12 Oct 2023 12:05:16 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2698EC9 for ; Thu, 12 Oct 2023 09:05:15 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9b64b98656bso186515666b.0 for ; Thu, 12 Oct 2023 09:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697126713; x=1697731513; 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=h51OwobaWmMhVpSm7Wk+pDxKsEdIOYAESioL6so1I0s=; b=uRFtU8k0/QpXCs6kAdXCJ4rawrksGSb7x/+ZAOcJ0XyuoABdQv+kgWmrHMMaqdzbCN wElZt6YVGABkBF1alcBXWkZDfJWrT9BHiDcZCPpL2PpIt5lz2zZ8Qqss451l7eqKUCJR xaiIfNYI2bOWn2mhIOopUBYkOY4wq2QXRMoUQniQqeyVjD22Cd7pZi4ACrJB2gc+/5HQ 8qZPQiN2pfXdQlcWgjbhRjKepiNOe+MdwHmcCcgtpGJru6alj6/9OZn0VZvPbM/Vlcre LGmjg1g7otPI72zt2KD6Sw/i6Qyh5Mp+dnJeq1alDhZpbn8AM+y17RQQ0VwpbwNzegBd omjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697126713; x=1697731513; 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=h51OwobaWmMhVpSm7Wk+pDxKsEdIOYAESioL6so1I0s=; b=VtTb3yQf+6MOkpysY/ROqdSbgYIRZfl0eEzNPvdlKzen4oKZ7bYsU40CgjAeCd4Beu c47yebtGupjowNjyJI/mQe5DCrPvDREGIrdPoKO2FS+m5G+sqVgnVviiJOWC1rfbkKHW c9a2OVAJgpZ01/ypcvC9EGP/cMK7JorxFZM9zHNc6iD62/UJkvWpoPK5fckRRmAJHmRx sFRS71rGJ46I4GN0W5mtPLD3ObuGl3RiiXQc11W3WwXCjdR3j4QDX2PVEQcEtaG1V5qO 9Bxgl/bLfJV82uEvGKF14V5Ut9ZG8x5DBGRT7L/ID0xP9ADtcbcK1g1WEMN8WlGHVQlv JC3w== X-Gm-Message-State: AOJu0YwHM0qnE3nwigXhszmxci0pAL8hGimmEG0udr2CfmElpKvGg2F3 990bGc86b5q197Mkpjp8mt8ZmA== X-Received: by 2002:a17:906:8447:b0:9ad:fb49:4eda with SMTP id e7-20020a170906844700b009adfb494edamr19729931ejy.3.1697126713592; Thu, 12 Oct 2023 09:05:13 -0700 (PDT) Received: from hackbox.lan ([79.115.22.174]) by smtp.gmail.com with ESMTPSA id k20-20020a170906681400b009b2d46425absm11305324ejr.85.2023.10.12.09.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:05:13 -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 , Unnathi Chalicheemala , Satya Durga Srinivasu Prabhala Subject: [PATCH v2] soc: qcom: llcc: Fix LLCC_TRP_ATTR2_CFGn offset Date: Thu, 12 Oct 2023 19:05:09 +0300 Message-Id: <20231012160509.184891-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.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 09:05:45 -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: Unnathi Chalicheemala Reviewed-by: Satya Durga Srinivasu Prabhala Reviewed-by: Konrad Dybcio Signed-off-by: Abel Vesa --- Changes since v1: * fixed Unnathi's first name typo * added Konrad's and Satya's R-b tags 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