]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
firmware: scmi: fix struct layout for scmi_clk_rate_set_in
authorClément Léger <clement.leger@bootlin.com>
Wed, 13 Oct 2021 14:00:04 +0000 (16:00 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 26 Oct 2021 19:26:45 +0000 (15:26 -0400)
First two fields are reversed compared to what is expected by the SCMI
specification.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Fixes: 60388844836 ("clk: add clock driver for SCMI agents")
include/scmi_protocols.h

index 2db71697e84209de57a69ecc0dd63bfd3c2c62fd..ef26e721762b32c824b13c675f3736a9f4a16e1e 100644 (file)
@@ -97,14 +97,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;
 };