mailbox: check for bit set before polling
authorJassi Brar <jassisinghbrar@gmail.com>
Fri, 12 Dec 2014 09:52:49 +0000 (15:22 +0530)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 6 Feb 2015 05:28:05 +0000 (10:58 +0530)
commit01340df8d3cd4d8f1773d5f1f569b77bbfce31ad
tree05a08588a68571a47eef495d3cfef7105b0700a1
parent356d5d28f2cd45ee1956ee868de6f5d37bb9f7dd
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>
drivers/mailbox/mailbox.c