Messages in this thread | | | Date | Fri, 24 Jul 2015 10:32:15 +0530 | Subject | Re: [PATCH 1/2] mailbox: switch to hrtimer for tx_complete polling | From | Jassi Brar <> |
| |
On Wed, Jul 22, 2015 at 5:58 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
> we might end-up waiting > for atleast a jiffy even though the response for that message from the > remote is received via interrupt and processed in relatively smaller > time granularity. > That is wrong.
If the controller supports TX interrupt it should set txdone_irq, which prevents polling i.e, controller driver calls mbox_chan_txdone.
If the controller doesn't support TX interrupt but the client receives some ack packet, then the client should set knows_txdone and call mbox_client_txdone. Again you don't have to wait on polling.
If there's neither TX interrupt nor some ack packet, only then it has to rely on polling. In which case, I doubt if we can desire some functionality that requires sub-jiffy notification of TX_done.
Thanks.
| |