Skip to contentSkip to conversation

scmi_protocols: Update discover list protocol message

PATCH In review [email protected] 3 participants 3 messages Oct 6, 2024 – Oct 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scmi_protocols: Update discover list protocol message

From: Ye Li <[email protected]>

When work with System Manager, System Manager provides vendor specific protocol, so the protocol array size is not enough.

---
 include/scmi_protocols.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/scmi_protocols.h +1 -1
index 43b66be00a..6204ce076e 100644
@@ -146,7 +146,7 @@ struct scmi_base_discover_impl_version_out {
 struct scmi_base_discover_list_protocols_out {
 	s32 status;
 	u32 num_protocols;
-	u32 protocols[3];
+	u32 protocols[4];
 };
 
 /**
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · On Sun, Oct 06, 2024 at 05:50:22PM +0800, [email protected] wrote:

From: Ye Li <[email protected]>

When work with System Manager, System Manager provides vendor specific protocol, so the protocol array size is not enough.

---
 include/scmi_protocols.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/scmi_protocols.h +0 -0
index 43b66be00a..6204ce076e 100644

include/scmi_protocols.h struct scmi_base_discover_impl_version_out { · line 152

Quoted 8 lines
include/scmi_protocols.h +1 -1
@@ -146,7 +146,7 @@ struct scmi_base_discover_impl_version_out {
 struct scmi_base_discover_list_protocols_out {
 	s32 status;
 	u32 num_protocols;
-	u32 protocols[3];
+	u32 protocols[4];
 };
 
 /**

Changing a constant from 3 to 4 isn't good, please define something and add a comment explaining what the constant means so it'll be clear when/why someone changes it to 5. Thanks.

Signature · 1 line
Tom
#2 lore raw

Hi Alice and NXP folks,

Quoted 3 lines

Changing a constant from 3 to 4 isn't good, please define something and add a comment explaining what the constant means so it'll be clear when/why someone changes it to 5. Thanks.

Please improve all the commit messages from the recent patches.

All patches need a clear commit log explaining the motivation/rationale for the change.

The recent patches have poor commit messages and we cannot take them as-is.

Thanks