mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 04:31:58 +08:00
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>
This commit is contained in:
parent
356d5d28f2
commit
01340df8d3
@ -87,7 +87,7 @@ static void msg_submit(struct mbox_chan *chan)
|
|||||||
exit:
|
exit:
|
||||||
spin_unlock_irqrestore(&chan->lock, flags);
|
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);
|
poll_txdone((unsigned long)chan->mbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user