firmware: arm_scmi: Add atomic mode support to smc transport
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 20 Dec 2021 19:56:42 +0000 (19:56 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 21 Dec 2021 10:59:38 +0000 (10:59 +0000)
commit0bfdca8a8661aaa2433b3f7b74d83e3520aa56e5
tree7fff825d72edea9bfbe3454c68407cd992a85531
parent69255e746890274e887ba36a403019380cde0b48
firmware: arm_scmi: Add atomic mode support to smc transport

Add a Kernel configuration option to enable SCMI SMC transport atomic
mode operation for selected SCMI transactions and leave it as default
disabled.

Substitute mutex usages with busy-waiting and declare smc transport as
.atomic_enabled if such Kernel configuration option is enabled.

Link: https://lore.kernel.org/r/20211220195646.44498-8-cristian.marussi@arm.com
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/Kconfig
drivers/firmware/arm_scmi/smc.c