summaryrefslogtreecommitdiffstats
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorJassi Brar <jassisinghbrar@gmail.com>2014-12-12 15:22:49 +0530
committerJassi Brar <jaswinder.singh@linaro.org>2015-02-06 10:58:05 +0530
commit01340df8d3cd4d8f1773d5f1f569b77bbfce31ad (patch)
tree05a08588a68571a47eef495d3cfef7105b0700a1 /drivers/mailbox
parent356d5d28f2cd45ee1956ee868de6f5d37bb9f7dd (diff)
downloadlinux-stable-01340df8d3cd4d8f1773d5f1f569b77bbfce31ad.tar.gz
linux-stable-01340df8d3cd4d8f1773d5f1f569b77bbfce31ad.tar.bz2
linux-stable-01340df8d3cd4d8f1773d5f1f569b77bbfce31ad.zip
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>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r--drivers/mailbox/mailbox.c2
1 files changed, 1 insertions, 1 deletions
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);
}