浏览代码

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>
Jassi Brar 10 年之前
父节点
当前提交
01340df8d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mailbox/mailbox.c

+ 1 - 1
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);
 }