Skip to contentSkip to conversation

soc: qcom: qcom_stats: Fix client votes offset

PATCH In review Maulik Shah 2 participants 2 messages Oct 20, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: qcom: qcom_stats: Fix client votes offset

Client votes starts at 0x20 offset. Correct the offset.

Reported-and-suggested-by Shawn Guo <[email protected]>
Fixes 1d7724690344 ("soc: qcom: Add Sleep stats driver")
---
 drivers/soc/qcom/qcom_stats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/qcom_stats.c +1 -1
index 817505b..131d24c 100644
@@ -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;
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Maulik Shah

Client votes starts at 0x20 offset. Correct the offset.

Reported-and-suggested-by Shawn Guo <[email protected]>
Fixes 1d7724690344 ("soc: qcom: Add Sleep stats driver")
Quoted 21 lines
---
 drivers/soc/qcom/qcom_stats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/qcom_stats.c +1 -1
index 817505b..131d24c 100644
@@ -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;
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation