From: Jassi Brar Date: Fri, 12 Dec 2014 09:52:49 +0000 (+0530) Subject: mailbox: check for bit set before polling X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=01340df8d3cd4d8f1773d5f1f569b77bbfce31ad;p=linux-beck.git 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 --- diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index 59aad4d5da53..19b491d2964f 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -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); }