linux-stable/drivers/firmware/arm_ffa
Jens Wiklander 7c4f6b7fec firmware: arm_ffa: Fix the partition ID check in ffa_notification_info_get()
[ Upstream commit 1a4bd2b128 ]

FFA_NOTIFICATION_INFO_GET retrieves information about pending
notifications. Notifications can be either global or per VCPU. Global
notifications are reported with the partition ID only in the list of
endpoints with pending notifications. ffa_notification_info_get()
incorrectly expect no ID at all for global notifications. Fix this by
checking for ID = 1 instead of ID = 0.

Fixes: 3522be48d8 ("firmware: arm_ffa: Implement the NOTIFICATION_INFO_GET interface")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Link: https://lore.kernel.org/r/20240311110700.2367142-1-jens.wiklander@linaro.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:23:26 +02:00
..
Kconfig firmware: arm_ffa: Add support for SMCCC as transport to FFA driver 2021-05-26 22:36:46 +01:00
Makefile firmware: arm_ffa: Add support for SMCCC as transport to FFA driver 2021-05-26 22:36:46 +01:00
bus.c firmware: arm_ffa: Emit modalias for FF-A devices 2023-10-06 15:32:47 +01:00
common.h firmware: arm_ffa: Setup in-kernel users of FFA partitions 2021-05-26 22:38:43 +01:00
driver.c firmware: arm_ffa: Fix the partition ID check in ffa_notification_info_get() 2024-04-17 11:23:26 +02:00
smccc.c firmware: arm_ffa: Add support for SMCCC as transport to FFA driver 2021-05-26 22:36:46 +01:00