Files
linux/drivers/firmware/arm_scmi
Peng Fan ab027c488f firmware: arm_scmi: imx: Correct tx size of scmi_imx_misc_ctrl_set
'struct scmi_imx_misc_ctrl_set_in' has a zero length array in the end,
The sizeof will not count 'value[]', and hence Tx size will be smaller
than actual size for Tx,and SCMI firmware will flag this as protocol
error.

Fix this by enlarge the Tx size with 'num * sizeof(__le32)' to count in
the size of data.

Fixes: 61c9f03e22 ("firmware: arm_scmi: Add initial support for i.MX MISC protocol")
Reviewed-by: Jacky Bai <[email protected]>
Tested-by: Shengjiu Wang <[email protected]>
Acked-by: Jason Liu <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Message-Id: <[email protected]>
(sudeep.holla: Commit rewording and replace hardcoded sizeof(__le32) value)
Signed-off-by: Sudeep Holla <[email protected]>
2025-02-13 14:27:37 +00:00
..