]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_ffa: Add missing rwlock_init() for the driver partition
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 8 Jan 2024 12:34:12 +0000 (12:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:21:19 +0000 (16:21 -0800)
commit39cd62bf8c11a85919e1e3ca3d4c4e2adc4ba7d1
tree2e377b05b4e5c761a1be5f220ff43cbd16bca511
parent895d16d6eb66d2f022455700ba8bb8bbb046d02b
firmware: arm_ffa: Add missing rwlock_init() for the driver partition

[ Upstream commit 5ff30ade16cd9efc2466d3ea22bbaf370772941a ]

Add the missing rwlock initialization for the FF-A partition associated
the driver in ffa_setup_partitions(). It will the primary scheduler
partition in the host or the VM partition in the virtualised environment.
IOW, it corresponds to the partition with VM ID == drv_info->vm_id.

Fixes: 1b6bf41b7a65 ("firmware: arm_ffa: Add notification handling mechanism")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240108-ffa_fixes_6-8-v1-2-75bf7035bc50@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_ffa/driver.c