mailbox: bcm-flexrm-mailbox: Use txdone_ack instead of txdone_poll
authorAnup Patel <anup.patel@broadcom.com>
Tue, 1 Aug 2017 10:35:54 +0000 (16:05 +0530)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 31 Aug 2017 03:09:04 +0000 (08:39 +0530)
commit1da92afbbfcde9dcbbf85cc94ef506c986c7e4a1
tree83081083df3c875c2298107978f2fc7e0c68594e
parent1f7466c6b428fa52504e85c2df43aa8641f9294e
mailbox: bcm-flexrm-mailbox: Use txdone_ack instead of txdone_poll

Currently, FlexRM driver uses txdone_poll method of Linux Mailbox
to model the send_data() callback. To achieve this, we have introduced
"last_pending_msg" pointer for each FlexRM ring which keeps track of
the message that did not fit in the FlexRM ring.

This patch updates FlexRM driver to use txdone_ack method instead of
txdone_poll method because txdone_poll is not efficient for FlexRM
and requires additional tracking in FlexRM driver.

Also, moving to txdone_ack method helps us remove "last_pending_msg"
pointer and last_tx_done() callback.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-flexrm-mailbox.c