Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jassi Brar <jassisinghbrar@gmail.com>

authored by

Jassi Brar and committed by
Jassi Brar
01340df8 356d5d28

+1 -1
+1 -1
drivers/mailbox/mailbox.c
··· 87 87 exit: 88 88 spin_unlock_irqrestore(&chan->lock, flags); 89 89 90 - if (!err && chan->txdone_method == TXDONE_BY_POLL) 90 + if (!err && (chan->txdone_method & TXDONE_BY_POLL)) 91 91 poll_txdone((unsigned long)chan->mbox); 92 92 } 93 93