diff options
| author | Joonwon Kang <joonwonkang@google.com> | 2026-05-10 08:41:11 +0300 |
|---|---|---|
| committer | Jassi Brar <jassisinghbrar@gmail.com> | 2026-05-18 21:35:32 +0300 |
| commit | 96a3d2f3167f5644b30e60171898e67123c3c2c6 (patch) | |
| tree | 38dc65f41db45e2fea4c940b9a191604747c84bf /scripts/Makefile.thinlto | |
| parent | c96c8a7404ef8ce434ffd0f07b00e1a493fff42d (diff) | |
| download | linux-96a3d2f3167f5644b30e60171898e67123c3c2c6.tar.xz | |
mailbox: Make mbox_send_message() return error code when tx fails
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.
Signed-off-by: Joonwon Kang <joonwonkang@google.com>
Reviewed-by: Sudeep Holla <sudeep.holla@kernel.org>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
