aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/mtk_scp_ipi.c
diff options
context:
space:
mode:
authorPi-Hsun Shih <[email protected]>2019-11-12 11:03:26 +0000
committerBjorn Andersson <[email protected]>2020-01-20 18:29:56 +0000
commit7017996951fde84698ddfe7fd47f92bd9d9eb85d (patch)
treeed20cf19e91e293cae1912bcce6186b34f164f23 /drivers/remoteproc/mtk_scp_ipi.c
parentremoteproc/mediatek: add SCP support for mt8183 (diff)
downloadkernel-7017996951fde84698ddfe7fd47f92bd9d9eb85d.tar.gz
kernel-7017996951fde84698ddfe7fd47f92bd9d9eb85d.zip
rpmsg: add rpmsg support for mt8183 SCP.
Add a simple rpmsg support for mt8183 SCP, that use IPI / IPC directly. Signed-off-by: Pi-Hsun Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/remoteproc/mtk_scp_ipi.c')
-rw-r--r--drivers/remoteproc/mtk_scp_ipi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/remoteproc/mtk_scp_ipi.c b/drivers/remoteproc/mtk_scp_ipi.c
index abdb7944368a..3d3d87210ef2 100644
--- a/drivers/remoteproc/mtk_scp_ipi.c
+++ b/drivers/remoteproc/mtk_scp_ipi.c
@@ -162,6 +162,7 @@ int scp_ipi_send(struct mtk_scp *scp, u32 id, void *buf, unsigned int len,
int ret;
if (WARN_ON(id <= SCP_IPI_INIT) || WARN_ON(id >= SCP_IPI_MAX) ||
+ WARN_ON(id == SCP_IPI_NS_SERVICE) ||
WARN_ON(len > sizeof(send_obj->share_buf)) || WARN_ON(!buf))
return -EINVAL;