From patchwork Wed Oct 20 08:49:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maulik Shah X-Patchwork-Id: 12571835 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1B7EC433EF for ; Wed, 20 Oct 2021 08:49:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 883AA6109F for ; Wed, 20 Oct 2021 08:49:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbhJTIvq (ORCPT ); Wed, 20 Oct 2021 04:51:46 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:27470 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbhJTIvq (ORCPT ); Wed, 20 Oct 2021 04:51:46 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1634719772; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=hcAWFLkrr3vyex+n2PUyQV7o3dqbvwtfVb8aoLuhovg=; b=RulKoafDwKBoEn15B7P573fRzSXpGZqbX0ea89lTcdo8c9ujchJNv54CqCLJJq2W3dad0M6N n2Oc8E+nkAHiPIPNBxrbA19HvOsB+LWpkoGdSWwpee5ss0/hO594WE+KNTqZD93cPU96N816 pI8ad/BXSUX6aZawQs8jSTlE2Uk= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI1MzIzYiIsICJsaW51eC1hcm0tbXNtQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 616fd81859612e0100d6042a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 20 Oct 2021 08:49:28 GMT Sender: mkshah=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B4C81C4360C; Wed, 20 Oct 2021 08:49:27 +0000 (UTC) Received: from mkshah-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9EE6EC43460; Wed, 20 Oct 2021 08:49:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 9EE6EC43460 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Maulik Shah To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, agross@kernel.org, rnayak@codeaurora.org, lsrao@codeaurora.org, stephan@gerhold.net, shawn.guo@linaro.org, Maulik Shah Subject: [PATCH] soc: qcom: qcom_stats: Fix client votes offset Date: Wed, 20 Oct 2021 14:19:13 +0530 Message-Id: <1634719753-26064-1-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Client votes starts at 0x20 offset. Correct the offset. Reported-and-suggested-by: Shawn Guo Fixes: 1d7724690344 ("soc: qcom: Add Sleep stats driver") Signed-off-by: Maulik Shah Reviewed-by: Shawn Guo --- drivers/soc/qcom/qcom_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c index 817505b..131d24c 100644 --- a/drivers/soc/qcom/qcom_stats.c +++ b/drivers/soc/qcom/qcom_stats.c @@ -22,7 +22,7 @@ #define LAST_ENTERED_AT_OFFSET 0x8 #define LAST_EXITED_AT_OFFSET 0x10 #define ACCUMULATED_OFFSET 0x18 -#define CLIENT_VOTES_OFFSET 0x1c +#define CLIENT_VOTES_OFFSET 0x20 struct subsystem_data { const char *name;