original_kernel/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
..
Makefile
base.c
bus.c firmware: arm_scmi: Ensure drivers provide a probe function 2021-07-12 14:16:19 +01:00
clock.c
common.h
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
notify.c firmware: arm_scmi: Fix kernel doc warnings about return values 2021-07-13 11:39:54 +01:00
notify.h
perf.c
power.c
reset.c
scmi_pm_domain.c
sensors.c firmware: arm_scmi: Avoid padding in sensor message structure 2021-07-13 11:42:14 +01:00
shmem.c
smc.c
system.c
voltage.c