projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
356d5d2
)
mailbox: check for bit set before polling
author
Jassi Brar
<jassisinghbrar@gmail.com>
Fri, 12 Dec 2014 09:52:49 +0000
(15:22 +0530)
committer
Jassi Brar
<jaswinder.singh@linaro.org>
Fri, 6 Feb 2015 05:28:05 +0000
(10:58 +0530)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mailbox/mailbox.c
b/drivers/mailbox/mailbox.c
index 59aad4d5da5321ab2d6e7b6688c0fd0238b2210e..19b491d2964f313744513920803e1c327305d7f9 100644
(file)
--- 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);
}