firmware: arm_scmi: Add compatibility checks for shmem node
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 2 Jun 2021 07:38:51 +0000 (08:38 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 8 Jun 2021 14:08:53 +0000 (15:08 +0100)
commit507cd4d2c5eb2d647d27b1047e1a8c73c4890cf3
tree89755431c2c0d4337a083199eea743aea666b500
parented7ecb8839010150e3adb41800d218ef3d62e269
firmware: arm_scmi: Add compatibility checks for shmem node

The shared memory node used for communication between the firmware and
the OS should be compatible with "arm,scmi-shmem". Add the check for the
same while parsing the node before fetching the memory regions.

Link: https://lore.kernel.org/r/20210602073851.1005607-2-sudeep.holla@arm.com
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Cristian Marussi <cristian.marussi@arm.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Jim Quinlan <jim2101024@gmail.com>
Cc: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/mailbox.c
drivers/firmware/arm_scmi/smc.c