RE: [PATCH v8 4/4] mailbox: Add support for i.MX7D messaging unit
From: "A.s. Dong" <aisheng.dong@nxp.com>
Date: 2018-08-01 07:44:43
Also in:
linux-arm-kernel
From: "A.s. Dong" <aisheng.dong@nxp.com>
Date: 2018-08-01 07:44:43
Also in:
linux-arm-kernel
-----Original Message----- From: Jassi Brar [mailto:jassisinghbrar@gmail.com]
[...]
quoted
+ +static void imx_mu_txdb_work(struct work_struct *work) { + struct imx_mu_con_priv *cp = + container_of(work, struct imx_mu_con_priv, work); + mbox_chan_txdone(cp->chan, 0); }The api assumes a controller have same type of channels. So we are having to do this here. I am not sure, but would declaring two mailbox controllers (one with doorbells and the other data channels) work? If not, at least we could use a tasklet instead of a work queue?
I'm also a bit curious what the meaning of calling mbox_chan_txdone for a doorbell mailbox? Is there any recommended way to use it? Regards Dong Aisheng