summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorElliot Berman <quic_eberman@quicinc.com>2023-04-10 19:16:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-07 00:12:42 +0300
commit0130f77fd2daccdba7bbe7c7a79728206d01222c (patch)
treeae69552924933d5485f8a7f76a87f3981a397384 /include/linux
parente9769ed8c0ff88d393a9b129ee1e0809ef020f82 (diff)
downloadlinux-0130f77fd2daccdba7bbe7c7a79728206d01222c.tar.xz
mailbox: Allow direct registration to a channel
[ Upstream commit 85a953806557dbf25d16e8c132b5b9b100d16496 ] Support virtual mailbox controllers and clients which are not platform devices or come from the devicetree by allowing them to match client to channel via some other mechanism. Tested-by: Sudeep Holla <sudeep.holla@arm.com> (pcc) Signed-off-by: Elliot Berman <quic_eberman@quicinc.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> Stable-dep-of: ff0e4d4c97c9 ("mailbox: pcc: don't zero error register") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mailbox_client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mailbox_client.h b/include/linux/mailbox_client.h
index 65229a45590f..734694912ef7 100644
--- a/include/linux/mailbox_client.h
+++ b/include/linux/mailbox_client.h
@@ -37,6 +37,7 @@ struct mbox_client {
void (*tx_done)(struct mbox_client *cl, void *mssg, int r);
};
+int mbox_bind_client(struct mbox_chan *chan, struct mbox_client *cl);
struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
const char *name);
struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index);