Re: [PATCH 2/2 RESEND] mailbox: Make mbox_send_message() return error code when tx fails
From: Jassi Brar
Date: Sat Jan 24 2026 - 20:52:22 EST
On Tue, Dec 16, 2025 at 2:44 AM Joonwon Kang <joonwonkang@xxxxxxxxxx> wrote:
>
> Previously, when the mailbox controller failed transmitting message, the
> error code was only passed to the client's tx done handler and not to
> mbox_send_message(). For this reason, the function could return a false
> success. This commit resolves the issue by introducing the tx status and
> checking it before mbox_send_message() returns.
>
A client submitted the message, and that client gets the actual
status. mbox_send_message does not (can not) tell if the message was
successfully sent or not. For example, consider non-blocking mode when
mbox_send_message() immediately returns after simply placing the
message in the fifo. It returns 0, but still the message transmission
may fail when its turn comes. So I think it is fine as is.
Thanks,
Jassi