OSDN Git Service

firmware: arm_scmi: Drop checking for shmem property in parent node
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 27 Mar 2020 16:36:54 +0000 (16:36 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 14 Apr 2020 08:31:49 +0000 (09:31 +0100)
commit4e44590ee4a917df5ce557df4ad831ec5e82b4a6
tree8c235773e304d5f205a985d6e7c5f3db37616948
parent8aa6e12bbf9dd6cf1ebf2aad7b09389863a4c2c6
firmware: arm_scmi: Drop checking for shmem property in parent node

The scmi protocol core driver checks for the channel availability
before evaluating the shmem property. If the individual protocols
don't have separate channel assigned to them, the channel alloted
for the BASE protocol is reused automatically.

Therefore there is no need to check for the shmem property in the
parent node if it is absent in the child protocol node.

Link: https://lore.kernel.org/r/20200327163654.13389-5-sudeep.holla@arm.com
Tested-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/smc.c