]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
firmware: arm_scmi: add support for polling based SCMI transfers
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 20 Jul 2017 13:39:57 +0000 (14:39 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000 (16:37 +0000)
commitd4c3751a8de2deeaae546b97650f895b62bbd1b4
tree98d921a362ac0aba8182b9c59ad7bf60cec28b2a
parentbc40081d9825c7ed34501ebfc0a533047a07b16c
firmware: arm_scmi: add support for polling based SCMI transfers

It would be useful to have options to perform some SCMI transfers
atomically by polling for the completion flag instead of interrupt
driven. The SCMI specification has option to disable the interrupt and
poll for the completion flag in the shared memory.

This patch adds support for polling based SCMI transfers using that
option. This might be used for uninterrupted/atomic DVFS operations
from the scheduler context.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c