firmware: arm_scmi: Introduce protocol handle definitions
authorCristian Marussi <cristian.marussi@arm.com>
Tue, 16 Mar 2021 12:48:27 +0000 (12:48 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 29 Mar 2021 08:41:29 +0000 (09:41 +0100)
commitd7b6cc563a600762597ff608f487f90dc8b66f16
treefe2862b3797277152ff0cef84b7292460b523fb0
parent48dc16e2e52ca386d97435f257ef8a754becb0b8
firmware: arm_scmi: Introduce protocol handle definitions

Add basic protocol handles definitions and private data helpers.

A protocol handle identifies a protocol instance initialized against a
specific handle, it embeds all the references to the core SCMI transfer
methods that will be needed by a protocol implementation to build and
send its own protocol specific messages using common core methods.

As such, in the interface, a protocol handle will be passed down from
the core to the protocol specific initialization callback at init time.

Anyways, at this point only definitions are introduced, all protocols
initialization code and SCMI drivers probing is still based on the old
interface, so no functional change.

Link: https://lore.kernel.org/r/20210316124903.35011-3-cristian.marussi@arm.com
Tested-by: Florian Fainelli <f.fainelli@gmail.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