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

Commit 01340df8 authored by Jassi Brar's avatar Jassi Brar Committed by Jassi Brar
Browse files

mailbox: check for bit set before polling



Before polling we just need to see if the TXDONE_BY_POLL bit
is set in txdone_method. There may be another bit (method)
specified as well, like TXDONE_BY_ACK.

Signed-off-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
parent 356d5d28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static void msg_submit(struct mbox_chan *chan)
exit:
	spin_unlock_irqrestore(&chan->lock, flags);

	if (!err && chan->txdone_method == TXDONE_BY_POLL)
	if (!err && (chan->txdone_method & TXDONE_BY_POLL))
		poll_txdone((unsigned long)chan->mbox);
}