linux/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
..
base.c
bus.c firmware: arm_scmi: Cleanup the core driver removal callback 2022-11-01 11:30:13 +00:00
clock.c firmware: arm_scmi: Improve checks in the info_get operations 2022-08-22 18:01:45 +01:00
common.h firmware: arm_scmi: Make tx_prepare time out eventually 2022-11-01 11:33:24 +00:00
driver.c firmware: arm_scmi: Fix xfers allocation on Rx channel 2023-05-11 23:03:11 +09:00
Kconfig firmware: arm_scmi: Add SCMI System Power Control driver 2022-07-04 14:28:42 +01:00
mailbox.c firmware: arm_scmi: Fix device node validation for mailbox transport 2023-03-30 12:49:29 +02:00
Makefile firmware: arm_scmi: Add SCMI v3.1 powercap protocol basic support 2022-07-04 14:28:42 +01:00
msg.c
notify.c
notify.h
optee.c firmware: arm_scmi: Make tx_prepare time out eventually 2022-11-01 11:33:24 +00:00
perf.c Power management updates for 5.20-rc1 2022-08-02 11:17:00 -07:00
power.c
powercap.c firmware: arm_scmi: Use fast channel tracing 2022-07-04 14:28:43 +01:00
protocols.h firmware: arm_scmi: Generalize the fast channel support 2022-07-04 14:28:42 +01:00
reset.c firmware: arm_scmi: Fix the asynchronous reset requests 2022-08-23 12:21:37 +01:00
scmi_pm_domain.c MMC core: 2022-09-28 11:36:31 -07:00
scmi_power_control.c firmware: arm_scmi: Add SCMI System Power Control driver 2022-07-04 14:28:42 +01:00
sensors.c firmware: arm_scmi: Harden accesses to the sensor domains 2022-08-22 18:02:59 +01:00
shmem.c firmware: arm_scmi: Harden shared memory access in fetch_notification 2023-02-01 08:34:05 +01:00
smc.c firmware: arm_scmi: Make tx_prepare time out eventually 2022-11-01 11:33:24 +00:00
system.c firmware: arm_scmi: Add SCMI v3.1 System Power extensions 2022-07-04 14:28:42 +01:00
virtio.c firmware: arm_scmi: Fix virtio channels cleanup on shutdown 2023-02-01 08:34:06 +01:00
voltage.c