mailbox: Allow operation without .recv callback
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 27 Oct 2025 16:38:38 +0000 (17:38 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Nov 2025 16:40:42 +0000 (17:40 +0100)
commit1b102d2fe17884d46cb555474310c8c942014d58
tree49da1fb46869333d819023e847d334df608e95ea
parentbc47ca03b801619c6510600719d74e776b711ac3
mailbox: Allow operation without .recv callback

Some shared memory mailboxes may have empty receive operation,
because the data are polled by upper layers directly from the
shared memory region, and there is no completion interrupt or
bit of any sort. Allow empty .recv callback, and if the .recv
callback is empty, exit from mbox_recv() right away, because
any polling for completion here would be meaningless.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
drivers/mailbox/mailbox-uclass.c