Message ID | CAJe_Zhdg8J_GhxJJvJTyGDK-bAmXwEXmWh6d0biisM4M8o3a4g@mail.gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index afa63cd..4059602 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -101,10 +101,11 @@ static void tx_tick(struct mbox_chan *chan, int r) _msg_submit(chan); /* Notify the client */ + if (mssg && chan->cl->tx_done) + chan->cl->tx_done(chan->cl, mssg, r); + if (chan->cl->tx_block) complete(&chan->tx_complete); - else if (mssg && chan->cl->tx_done) - chan->cl->tx_done(chan->cl, mssg, r); } static void poll_txdone(unsigned long data)