Skip to contentSkip to conversation

platform/x86: asus-armoury: fix only DC tunables being available

PATCH In review Denis Benato 3 participants 4 messages Nov 23, 2025 – Nov 24, 2025

Subsystems (2)
lore
Share & tools
lore

Denis Benato

author maintainer
#0 lore raw

PATCH 1/1 platform/x86: asus-armoury: fix only DC tunables being available

Module asus-armoury must use AC tunables to check availability of power-related firmware attributes: fix missing attributes by using AC attributes instead of DC.

---
 drivers/platform/x86/asus-armoury.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/platform/x86/asus-armoury.c +2 -1
index 5106e8a41e25..9c1a9ad42bc4 100644
@@ -869,7 +869,8 @@ static bool has_valid_limit(const char *name, const struct power_limits *limits)
 
 static int asus_fw_attr_add(void)
 {
-	const struct rog_tunables *const ac_rog_tunables = asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_DC];
+	const struct rog_tunables *const ac_rog_tunables =
+		asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_AC];
 	const struct power_limits *limits;
 	bool should_create;
 	const char *name;
Signature · 1 line
2.52.0
#1 lore raw
Quoted 1 line · Denis Benato

Module asus-armoury must use AC tunables to check availability

No idea why I missed the double space here.

Do I resend a corrected version? Should checkpatch.pl also check for this?

Quoted 22 lines

of power-related firmware attributes: fix missing attributes by using AC attributes instead of DC.

---
 drivers/platform/x86/asus-armoury.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/platform/x86/asus-armoury.c +2 -1
index 5106e8a41e25..9c1a9ad42bc4 100644
@@ -869,7 +869,8 @@ static bool has_valid_limit(const char *name, const struct power_limits *limits)
 
 static int asus_fw_attr_add(void)
 {
-	const struct rog_tunables *const ac_rog_tunables = asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_DC];
+	const struct rog_tunables *const ac_rog_tunables =
+		asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_AC];
 	const struct power_limits *limits;
 	bool should_create;
 	const char *name;
maintainer
#2 lore raw
Quoted 5 lines · Denis Benato
Quoted 1 line · Denis Benato

Module asus-armoury must use AC tunables to check availability

No idea why I missed the double space here.

Do I resend a corrected version? Should checkpatch.pl also check for this?

Thanks for the heads up.

I can take care of it while applying (and if I happen to forget the sky is not going to fall :-)).

Signature · 1 line
 i.
Quoted 23 lines
Quoted 22 lines

of power-related firmware attributes: fix missing attributes by using AC attributes instead of DC.

---
 drivers/platform/x86/asus-armoury.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/platform/x86/asus-armoury.c +2 -1
index 5106e8a41e25..9c1a9ad42bc4 100644
@@ -869,7 +869,8 @@ static bool has_valid_limit(const char *name, const struct power_limits *limits)
 
 static int asus_fw_attr_add(void)
 {
-	const struct rog_tunables *const ac_rog_tunables = asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_DC];
+	const struct rog_tunables *const ac_rog_tunables =
+		asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_AC];
 	const struct power_limits *limits;
 	bool should_create;
 	const char *name;
maintainer
#3 lore raw
In reply to Denis Benato
Quoted 5 lines · Denis Benato

Module asus-armoury must use AC tunables to check availability of power-related firmware attributes: fix missing attributes by using AC attributes instead of DC.

Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: asus-armoury: fix only DC tunables being available

      commit: f72c8ab57927653199da6e35405eadffb40d7e54

--
i.