Skip to content

Commit 5106e65

Browse files
committed
Merge tag 'scmi-fix-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into arm/fixes
Arm SCMI fix for v6.6 A single fix to address scmi_perf_attributes_get() using the protocol version even before it was populated and ending up with unexpected bogowatts power scale. * tag 'scmi-fix-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux: firmware: arm_scmi: Fixup perf power-cost/microwatt support Link: https://lore.kernel.org/r/20230927121604.158645-1-sudeep.holla@arm.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 79684f2 + c3638b8 commit 5106e65

File tree

1 file changed

+2
-2
lines changed
  • drivers/firmware/arm_scmi

1 file changed

+2
-2
lines changed

drivers/firmware/arm_scmi/perf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,8 @@ static int scmi_perf_protocol_init(const struct scmi_protocol_handle *ph)
10801080
if (!pinfo)
10811081
return -ENOMEM;
10821082

1083+
pinfo->version = version;
1084+
10831085
ret = scmi_perf_attributes_get(ph, pinfo);
10841086
if (ret)
10851087
return ret;
@@ -1104,8 +1106,6 @@ static int scmi_perf_protocol_init(const struct scmi_protocol_handle *ph)
11041106
if (ret)
11051107
return ret;
11061108

1107-
pinfo->version = version;
1108-
11091109
return ph->set_priv(ph, pinfo);
11101110
}
11111111

0 commit comments

Comments
 (0)