firmware: arm_scmi: Reject clear channel request on A2P
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 21 Oct 2024 17:15:44 +0000 (18:15 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 22 Oct 2024 08:55:28 +0000 (09:55 +0100)
commita0a18e91eb3a6ef75a6de69dc00f206b913e3848
tree888d1a11399a3915b98cac17ce3b28a4f18d141d
parent295416091e44806760ccf753aeafdafc0ae268f3
firmware: arm_scmi: Reject clear channel request on A2P

The clear channel transport operation is supposed to be called exclusively
on the P2A channel from the agent, since it relinquishes the ownership of
the channel to the platform, after this latter has initiated some sort of
P2A communication.

Make sure that, if it is ever called on a A2P, is logged and ignored.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Message-Id: <20241021171544.2579551-1-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