From 34019420175a9edf6d35b567815757eee727f078 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Thu, 5 May 2022 01:37:01 +0900 Subject: [PATCH 045/171] WIP: mailbox: fix poll Signed-off-by: Hector Martin --- drivers/mailbox/mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index 4229b9b5da98..e27500e8cba9 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -310,7 +310,7 @@ int mbox_flush(struct mbox_chan *chan, unsigned long timeout) return -ENOTSUPP; ret = chan->mbox->ops->flush(chan, timeout); - if (ret < 0) + if (ret >= 0) tx_tick(chan, ret); return ret; -- 2.34.1