mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
27 lines
735 B
Diff
27 lines
735 B
Diff
From 34019420175a9edf6d35b567815757eee727f078 Mon Sep 17 00:00:00 2001
|
|
From: Hector Martin <marcan@marcan.st>
|
|
Date: Thu, 5 May 2022 01:37:01 +0900
|
|
Subject: [PATCH 045/171] WIP: mailbox: fix poll
|
|
|
|
Signed-off-by: Hector Martin <marcan@marcan.st>
|
|
---
|
|
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
|
|
|