OSDN Git Service

firmware: arm_scmi: Add notification callbacks-registration
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 1 Jul 2020 15:53:41 +0000 (16:53 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 1 Jul 2020 16:07:25 +0000 (17:07 +0100)
commite7c215f358a350c4bc326b9cea86763f480a97f9
tree9213c564ac72684b6ae12dc7ca1f9e47d242521b
parent1fc2dd1864c2b18860fb619caeee758504c3aac8
firmware: arm_scmi: Add notification callbacks-registration

Add the core SCMI notifications callbacks-registration support: allow
users to register their own callbacks against the desired events.

Whenever a registration request is issued against a still non existent
event, mark such request as pending for later processing, in order to
account for possible late initializations of SCMI Protocols associated
to loadable drivers.

Link: https://lore.kernel.org/r/20200701155348.52864-3-cristian.marussi@arm.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/notify.c
include/linux/scmi_protocol.h