]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fb096f96c4a955d52043df831f9407e85cec301
treefe2862b3797277152ff0cef84b7292460b523fb0
parentd2cf040d5d738610e42781b73f2911b9af945731
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