Commit 5ea96c25 authored by Peng Fan's avatar Peng Fan Committed by Carlos Llamas
Browse files

FROMGIT: firmware: arm_scmi: Introduce get_max_msg_size() helper/accessor



When the agent is sending data to the SCMI platform, the drivers in the
agent could check the maximum message size supported to avoid potential
protocol buffer overflow.

Introduce the helper/accessor function get_max_msg_size() for the same.

Reviewed-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20240418-pinctrl-scmi-v11-1-499dca9864a7@nxp.com


Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>

Bug: 339841691
(cherry picked from commit 4869b5cc
https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git

 for-linux-next)
Change-Id: I78ad2f56c2aae351d7f7761b37f10ad33e48caf1
Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
parent ffb70eb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment