firmware: scmi: smt: Use io helpers
authorPeng Fan <peng.fan@nxp.com>
Fri, 26 Sep 2025 16:06:15 +0000 (00:06 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 9 Oct 2025 20:16:11 +0000 (14:16 -0600)
commit8c48bae4f5783a1da95177e7d5d85c00e2ada0c3
tree27e074c9acdea848eb9bfc004e69fdc1ee685523
parent92fe41caadfd01b6c31df12195b8a9b59ad4f4f5
firmware: scmi: smt: Use io helpers

It is not good practice to directly use "hdr->x" to read/write the hdr,
because the SCMI buffer may not mapped as normal memory. Following Linux
Kernel, using ioread32/iowrite32/memcpy_[from,to]io for smt header read,
write.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/firmware/scmi/smt.c