remoteproc: stm32: fix mbox_send_message call
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Tue, 20 Apr 2021 09:19:22 +0000 (11:19 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 23 Jun 2021 18:45:20 +0000 (13:45 -0500)
commit51c4b4e212269a8634dee2000182cfca7f11575b
tree1afa87c45eecfc725b8637fff278b2dd09f26576
parent7dbdb8bd7c028c83ac75e5c97536559a7274c797
remoteproc: stm32: fix mbox_send_message call

mbox_send_message is called by passing a local dummy message or
a function parameter. As the message is queued, it is dereferenced.
This works because the message field is not used by the stm32 ipcc
driver, but it is not clean.

Fix by passing a constant string in all cases.

The associated comments are removed because rproc should not have to
deal with the behavior of the mailbox frame.

Reported-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20210420091922.29429-1-arnaud.pouliquen@foss.st.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/stm32_rproc.c