firmware: arm_scmi: Add sync_cmds_completed_on_ret transport flag
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 20 Dec 2021 19:56:38 +0000 (19:56 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 21 Dec 2021 10:59:26 +0000 (10:59 +0000)
commit31d2f803c19c1a7ad8d05c20b6cd83e8a647fb5c
treea3f5516be349e987e270a8b88d3d2f20678d7cd6
parentf716cbd33f038af87824c30e165b3b70e4c6be1e
firmware: arm_scmi: Add sync_cmds_completed_on_ret transport flag

Add a flag to let the transport signal to the core if its handling of sync
command implies that, after .send_message has returned successfully, the
requested command can be assumed to be fully and completely executed on
SCMI platform side so that any possible response value is already
immediately available to be retrieved by a .fetch_response: in other words
the polling phase can be skipped in such a case and the response values
accessed straight away.

Note that all of the above applies only when polling mode of operation was
selected by the core: if instead a completion IRQ was found to be available
the normal response processing path based on completions will still be
followed.

Link: https://lore.kernel.org/r/20211220195646.44498-4-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/common.h
drivers/firmware/arm_scmi/driver.c