Skip to contentSkip to conversation

ACPI: tools: pfrut: Print the update_cap field during capability query

PATCH Applied Chen Yu 2 participants 2 messages Apr 26, 2024

Subsystems (2)
lore
Share & tools
lore

Chen Yu

author
#0 lore raw

PATCH 1/1 ACPI: tools: pfrut: Print the update_cap field during capability query

There is request from the end user to print this field to better query what type of update capability is supported on this platform.

---
 tools/power/acpi/tools/pfrut/pfrut.c | 2 ++
 1 file changed, 2 insertions(+)
tools/power/acpi/tools/pfrut/pfrut.c +2 -0
index 388c9e3ad040..44a9ecbd91e8 100644
@@ -174,6 +174,8 @@ void print_cap(struct pfru_update_cap_info *cap)
 		exit(1);
 	}
 
+	printf("update capability:%d\n", cap->update_cap);
+
 	uuid_unparse(cap->code_type, uuid);
 	printf("code injection image type:%s\n", uuid);
 	printf("fw_version:%d\n", cap->fw_version);
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 14 lines · Chen Yu

There is request from the end user to print this field to better query what type of update capability is supported on this platform.

---
 tools/power/acpi/tools/pfrut/pfrut.c | 2 ++
 1 file changed, 2 insertions(+)
tools/power/acpi/tools/pfrut/pfrut.c +0 -0
index 388c9e3ad040..44a9ecbd91e8 100644

tools/power/acpi/tools/pfrut/pfrut.c void print_cap(struct pfru_update_cap_info *cap)

Quoted 9 lines
tools/power/acpi/tools/pfrut/pfrut.c +2 -1
@@ -174,6 +174,8 @@ void print_cap(struct pfru_update_cap_info *cap)
                exit(1);
        }
 
+       printf("update capability:%d\n", cap->update_cap);
+
        uuid_unparse(cap->code_type, uuid);
        printf("code injection image type:%s\n", uuid);
        printf("fw_version:%d\n", cap->fw_version);
--

Applied as 6.10 material, thanks!