linux/drivers/firmware/arm_scmi
Cristian Marussi bdb8742dc6 firmware: arm_scmi: Fix range check for the maximum number of pending messages
SCMI message headers carry a sequence number and such field is sized to
allow for MSG_TOKEN_MAX distinct numbers; moreover zero is not really an
acceptable maximum number of pending in-flight messages.

Fix accordingly the checks performed on the value exported by transports
in scmi_desc.max_msg

Link: https://lore.kernel.org/r/20210712141833.6628-3-cristian.marussi@arm.com
Reported-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
[sudeep.holla: updated the patch title and error message]
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2021-07-13 11:42:20 +01:00
..
base.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
bus.c firmware: arm_scmi: Ensure drivers provide a probe function 2021-07-12 14:16:19 +01:00
clock.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
common.h firmware: arm_scmi: Add SMCCC discovery dependency in Kconfig 2021-06-02 11:26:13 +01:00
driver.c firmware: arm_scmi: Fix range check for the maximum number of pending messages 2021-07-13 11:42:20 +01:00
mailbox.c firmware: arm_scmi: Add compatibility checks for shmem node 2021-06-08 15:08:53 +01:00
Makefile firmware: arm_scmi: Add voltage domain management protocol support 2020-11-20 14:55:48 +00:00
notify.c firmware: arm_scmi: Fix kernel doc warnings about return values 2021-07-13 11:39:54 +01:00
notify.h firmware: arm_scmi: Remove duplicate declaration of struct scmi_protocol_handle 2021-04-27 11:57:26 +01:00
perf.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
power.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
reset.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
scmi_pm_domain.c firmware: arm_scmi: Add clock management to the SCMI power domain 2021-05-11 16:01:39 +01:00
sensors.c firmware: arm_scmi: Avoid padding in sensor message structure 2021-07-13 11:42:14 +01:00
shmem.c firmware: arm_scmi: Rename .clear_notification() transport_ops 2020-04-20 17:25:26 +01:00
smc.c firmware: arm_scmi: Add compatibility checks for shmem node 2021-06-08 15:08:53 +01:00
system.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
voltage.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00