Skip to contentSkip to conversation

firmware: scmi: fix struct layout for scmi_clk_rate_set_in

PATCH In review Clément Léger 2 participants 2 messages Oct 13, 2021 – Oct 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: scmi: fix struct layout for scmi_clk_rate_set_in

First two fields are reversed compared to what is expected by the SCMI specification.

Fixes 60388844836 ("clk: add clock driver for SCMI agents")
---
 include/scmi_protocols.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/scmi_protocols.h +2 -2
index ccab97c96c..653aa7ef30 100644
@@ -96,14 +96,14 @@ struct scmi_clk_rate_get_out {
 
 /**
  * struct scmi_clk_state_in - Message payload for CLOCK_RATE_SET command
- * @clock_id:	SCMI clock ID
  * @flags:	Flags for the clock rate set request
+ * @clock_id:	SCMI clock ID
  * @rate_lsb:	32bit LSB of the clock rate in Hertz
  * @rate_msb:	32bit MSB of the clock rate in Hertz
  */
 struct scmi_clk_rate_set_in {
-	u32 clock_id;
 	u32 flags;
+	u32 clock_id;
 	u32 rate_lsb;
 	u32 rate_msb;
 };
Signature · 1 line
2.33.0
#1 lore raw
Quoted 5 lines · Clément Léger

First two fields are reversed compared to what is expected by the SCMI specification.

Fixes 60388844836 ("clk: add clock driver for SCMI agents")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom