Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5998cfe1 authored by Lina Iyer's avatar Lina Iyer Committed by Will McVicker
Browse files

ANDROID: GKI: drivers: mailbox: fix race resulting in multiple message submission



The mailbox sends a request to the controller and the tx_done callback
received for that request clears the active_req pointer. The callback
sends the next request in the queue, if there is one. When a controller
is busy and cannot accept any more requests until the interrupt is
cleared, it would return -EAGAIN. The mailbox controller must unlock its
spinlock and retry again.

Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
Change-Id: Id58c7365be8c6bfc7f90fe9445c88c1246d2d7f8
(cherry picked from commit e5c2b83b3daae99cfd3ef55b2c132e8bf4c22b27)
Bug: 155339628
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
parent b15a3500
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment