acrn-kernel/drivers/firmware/arm_scmi
Cristian Marussi 198ca89dea firmware: arm_scmi: Fix xfers allocation on Rx channel
[ Upstream commit b2ccba9e8c ]

Two distinct pools of xfer descriptors are allocated at initialization
time: one (Tx) used to provide xfers to track commands and their replies
(or delayed replies) and another (Rx) to pick xfers from to be used for
processing notifications.

Such pools, though, are allocated globally to be used by the whole SCMI
instance, they are not allocated per-channel and as such the allocation of
notifications xfers cannot be simply skipped if no Rx channel was found for
the base protocol common channel, because there could be defined more
optional per-protocol dedicated channels that instead support Rx channels.

Change the conditional check to skip allocation for the notification pool
only if no Rx channel has been detected on any per-channel protocol at all.

Fixes: 4ebd8f6dea ("firmware: arm_scmi: Add receive buffer support for notifications")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20230326203449.3492948-1-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:11 +09:00
..
Kconfig
Makefile
base.c
bus.c
clock.c
common.h
driver.c
mailbox.c
msg.c
notify.c
notify.h
optee.c
perf.c
power.c
powercap.c
protocols.h
reset.c
scmi_pm_domain.c
scmi_power_control.c
sensors.c
shmem.c
smc.c
system.c
virtio.c
voltage.c