Home
last modified time | relevance | path

Searched hist:ae07e7ef38fdd9e260a834728bea9536d4dd1346 (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/scmi-msg/
H A Dsmt.cae07e7ef38fdd9e260a834728bea9536d4dd1346 Fri Apr 29 07:23:15 UTC 2022 Etienne Carriere <etienne.carriere@linaro.org> drivers: scmi-msg: handle invalid channels

Changes implementation channel_to_smt_hdr() of SMT message management
in scmi-msg driver to support being called with invalid channel ID
to relax implementation. On contrary, scmi_smt_init_agent_channel()
is expected to be called only for valid SMT channels.

By the way, with this change, scmi_entry_smt() read SMT header status
from shared memory after channel in successfully claimed, not before.
The change does not affect the communication and makes the implementation
more consistent. For consistency, I also rename local variables chan to
channel to be more explicit.

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>