firmware: arm_scmi: Generalize the fast channel support
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 4 Jul 2022 10:22:37 +0000 (11:22 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 13:28:42 +0000 (14:28 +0100)
commit6f9ea4dabd2d8831b470660a83fa09966933f850
tree1d731ae1852a7670e3634e5b93854a974c0c924d
parent0316f99c4780b0a5fd60b7f136c64cb1af8d5fc3
firmware: arm_scmi: Generalize the fast channel support

Generalize existing fast channel support used in the perf protocol and
make it available to possibly any protocol refactoring the common code
into a couple of new scmi_proto_helpers_ops routines.

Make perf protocol use this new infrastructure.

No functional change.

Link: https://lore.kernel.org/r/20220704102241.2988447-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/driver.c
drivers/firmware/arm_scmi/perf.c
drivers/firmware/arm_scmi/protocols.h