firmware: imx: scu: Ensure sequential TX
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 20 Feb 2020 16:10:01 +0000 (18:10 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 24 Feb 2020 07:02:25 +0000 (15:02 +0800)
commit26d0fba29c96241de8a9d16f045b1de49875884c
tree017674eab079ec078dbb8cdf5a1d7103c08d5099
parent2773fe1d31c42ffae2a9cb9a6055d99dd86e2fee
firmware: imx: scu: Ensure sequential TX

SCU requires that all messages words are written sequentially but linux MU
driver implements multiple independent channels for each register so ordering
between different channels must be ensured by SCU API interface.

Wait for tx_done before every send to ensure that no queueing happens at the
mailbox channel level.

Fixes: edbee095fafb ("firmware: imx: add SCU firmware driver support")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by:: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/firmware/imx/imx-scu.c