Re: [PATCH 1/6] mailbox: Add new API mbox_channel_device() for clients

From: Jassi Brar
Date: Fri Feb 03 2017 - 07:06:11 EST


On Thu, Feb 2, 2017 at 10:17 AM, Anup Patel <anup.patel@xxxxxxxxxxxx> wrote:
> The remote processor can have DMAENGINE capabilities and client
> can pass data to be processed via main memory. In such cases,
> the client will require DMAble memory for remote processor.
>
> This patch adds new API mbox_channel_device() which can be
> used by clients to get struct device pointer of underlying
> mailbox controller. This struct device pointer of mailbox
> controller can be used by clients to allocate DMAble memory
> for remote processor.
>
IIUC, DT already provides a way for what you need.