linux/drivers/firmware/arm_scmi
Sudeep Holla 9724722fde firmware: arm_scmi: Add missing Rx size re-initialisation
Few commands provide the list of description partially and require
to be called consecutively until all the descriptors are fetched
completely. In such cases, we don't release the buffers and reuse
them for consecutive transmits.

However, currently we don't reset the Rx size which will be set as
per the response for the last transmit. This may result in incorrect
response size being interpretted as the firmware may repond with size
greater than the one set but we read only upto the size set by previous
response.

Let us reset the receive buffer size to max possible in such cases as
we don't know the exact size of the response.

Link:  https://lore.kernel.org/r/20201012141746.32575-1-sudeep.holla@arm.com
Fixes: b6f20ff8bd ("firmware: arm_scmi: add common infrastructure and support for base protocol")
Reported-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2020-10-13 10:01:47 +01:00
..
base.c firmware: arm_scmi: Add missing Rx size re-initialisation 2020-10-13 10:01:47 +01:00
bus.c firmware: arm_scmi: Move scmi bus init and exit calls into the driver 2020-09-14 07:30:48 +01:00
clock.c firmware: arm_scmi: Add missing Rx size re-initialisation 2020-10-13 10:01:47 +01:00
common.h firmware: arm_scmi: Add missing Rx size re-initialisation 2020-10-13 10:01:47 +01:00
driver.c firmware: arm_scmi: Add missing Rx size re-initialisation 2020-10-13 10:01:47 +01:00
mailbox.c firmware: arm_scmi: Fix NULL pointer dereference in mailbox_chan_free 2020-09-09 10:01:21 +01:00
Makefile firmware: arm_scmi: Enable building as a single module 2020-09-14 07:31:03 +01:00
notify.c firmware: arm_scmi: Constify static scmi-ops 2020-09-07 12:43:27 +01:00
notify.h firmware: arm_scmi: Remove fixed size fields from reports/scmi_event_header 2020-07-13 09:40:21 +01:00
perf.c firmware: arm_scmi: Add missing Rx size re-initialisation 2020-10-13 10:01:47 +01:00
power.c firmware: arm_scmi: Move scmi protocols registration into the driver 2020-09-14 07:30:55 +01:00
reset.c firmware: arm_scmi: Fix ARCH_COLD_RESET 2020-10-12 14:05:12 +01:00
scmi_pm_domain.c firmware: arm_scmi: Fix SCMI genpd domain probing 2020-06-30 14:08:18 +01:00
sensors.c firmware: arm_scmi: Add missing Rx size re-initialisation 2020-10-13 10:01:47 +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: Expand SMC/HVC message pool to more than one 2020-10-12 15:10:42 +01:00
system.c firmware: arm_scmi: Move scmi protocols registration into the driver 2020-09-14 07:30:55 +01:00