On Wed, Aug 27, 2025 at 12:59:17PM +0800, Peng Fan wrote:
[...]
quoted hunk ↗ jump to hunk
static int scmi_imx_misc_protocol_init(const struct scmi_protocol_handle *ph)
diff --git a/include/linux/scmi_imx_protocol.h b/include/linux/scmi_imx_protocol.h
index 27bd372cbfb142b6acb0b1cf4b82f061529d0d45..6e18920aac56de67d388e985e3305745d3798c3e 100644
--- a/include/linux/scmi_imx_protocol.h
+++ b/include/linux/scmi_imx_protocol.h
@@ -52,6 +52,23 @@ struct scmi_imx_misc_ctrl_notify_report {
unsigned int flags;
};
+struct scmi_imx_misc_sys_sleep_rec {
+ u32 sleepentryusec;
+ u32 sleepexitusec;
+ u32 sleepcnt;
+ u32 wakesource;
+ u32 mixpwrstat;
+ u32 mempwrstat;
+ u32 pllpwrstat;
+ u32 syssleepmode;
+ u32 syssleepflags;
+};
And since the document/spec doesn't cover details on above, better
to add comment for this to explain each of it. How do you ensure
the backward compatibility if you are assigning a structure to a log
buffer that is not so structured the spec/document. Will be end up
with one structure for each version if f/w screws up the structure ?
Can it be a raw dump of man 4KB instead ? Sorry just realised it now.
--
Regards,
Sudeep