Re: [PATCH v5] mailbox: Make mbox_send_message() return error code when tx fails

From: Joonwon Kang

Date: Sun May 10 2026 - 01:41:58 EST


> On Fri, May 8, 2026 at 4:02 AM Joonwon Kang <joonwonkang@xxxxxxxxxx> wrote:
> >
> > 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() in blocking mode. 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.
> >
> > This commit works with the premise that the multi-threads' access to a
> > channel in blocking mode is serialized by clients, not by the mailbox
> > APIs, since the current mbox_send_message() in blocking mode does not
> > support multi-threads.
> >
> > Cc: stable@xxxxxxxxxxxxxxx
> >
> Not sure if this should go into stable. It is not a bug fix. See
> stable-kernel-rules

Alright, let me remove the Cc tag. Will try merging it to a stable branch
when needed later on.

Thanks,
Joonwon Kang