Message ID | 1501015526-32178-14-git-send-email-amit.pundir@linaro.org |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index 2691cb75b2e8..cbde6fccbc29 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -103,7 +103,7 @@ static void tx_tick(struct mbox_chan *chan, int r) if (mssg && chan->cl->tx_done) chan->cl->tx_done(chan->cl, mssg, r); - if (chan->cl->tx_block) + if (r != -ETIME && chan->cl->tx_block) complete(&chan->tx_complete); } @@ -266,8 +266,8 @@ int mbox_send_message(struct mbox_chan *chan, void *mssg) ret = wait_for_completion_timeout(&chan->tx_complete, wait); if (ret == 0) { - t = -EIO; - tx_tick(chan, -EIO); + t = -ETIME; + tx_tick(chan, t); } }