From patchwork Thu Oct 12 16:05:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13419414 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8CE5CDB46E for ; Thu, 12 Oct 2023 16:05:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235737AbjJLQFS (ORCPT ); Thu, 12 Oct 2023 12:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347251AbjJLQFQ (ORCPT ); Thu, 12 Oct 2023 12:05:16 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2441DBB for ; Thu, 12 Oct 2023 09:05:15 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9b98a699f45so183275266b.3 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=iz2vVWldHkSIDp3WZ5vsxUUVQp/yO/+jsENQG5HnyntN6KO2wQEuA1RPhf7K352g9T qphzEORJT6EWrPYWDEw0kzLU3JPl/GbaJpvYvsGqJVP2DgnJf6OKDFxUVLKbhAUKQT2L KnpZus5wA0pJypWOQqknEO+FPfjs5roiVk6JkuQ6wM7egf5LmEEhJbtgEGmwwj85B6Nb W0mwFmGsrT8A1sVs6yBDOKSm9zpRzvSfsvGEJjKDpD5niVri1Bn+B6IxJ+b9fgLgIlSy iJ9g4HqiXn5HE+N+/z1uMKTqrHxn7LbV+AkpM6W/I96alqtaH6NQOU6tHYhb+q47H+Mx 4QEg== X-Gm-Message-State: AOJu0YzXpZxshdUaqyuMQ8GpGCNXDKuRZ15Vf0I+IRjTMp4n+z9Lkwxt T/AM/n9+dzu4d+J8524TPbtWvhEJlY9hIo/j99A= X-Google-Smtp-Source: AGHT+IGT12k6sPvkO6Vv3rzcDBB/BNyNYBf7jeFzK9zKN7/feuGRswJeTT5L4dbk2B/jghcibhbAqg== 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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