firmware: arm_ffa: Refactor SRI handling in prepartion to add NPI support
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 11 Apr 2024 12:57:33 +0000 (13:57 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 15 Apr 2024 15:56:03 +0000 (16:56 +0100)
commitf936c242553febd5052c6178c1ac555adf837fec
tree63542a33ac6dae6b6674a4213af0e3b9603669c9
parent2b9c66d1abacbef91bdadc47fa8b9a3bd3a8fe99
firmware: arm_ffa: Refactor SRI handling in prepartion to add NPI support

In preparation to support handling of Notification Pending Interrupt(NPI)
in addition to the existing support for Schedule Receiver Interrupt(SRI),
refactor the code around SRI handling so that NPI support can reuse some
of it. This change shouldn't have any functionality impact. It neither
adds the support for NPIs nor changes any SRI support.

Tested-by: Jens Wiklander <jens.wiklander@linaro.org>
Link: https://lore.kernel.org/r/20240411-ffa_npi_support-v2-2-927a670254e6@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c