firmware: arm_ffa: Fix the partition ID check in ffa_notification_info_get()
authorJens Wiklander <jens.wiklander@linaro.org>
Mon, 11 Mar 2024 11:07:00 +0000 (12:07 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 25 Mar 2024 10:14:17 +0000 (10:14 +0000)
commit1a4bd2b128fb5ca62e4d1c5ca298d3d06b9c1e8e
treee8e7556656b3f8fee48a4e625d1c1363976fe889
parent4cece764965020c22cff7665b18a012006359095
firmware: arm_ffa: Fix the partition ID check in ffa_notification_info_get()

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: 3522be48d82b ("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>
drivers/firmware/arm_ffa/driver.c