Message ID | 20180821143203.29142-18-lokeshvutla@ti.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show |
Series | Initial support Texas Instrument's AM654 Platform | expand |
On Tue, Aug 21, 2018 at 08:01:55PM +0530, Lokesh Vutla wrote: > Sometimes mbox controllers wants to store private data in > mbox_chan so that it can be used at a later point of time. > Adding support for hooking private data. > > Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
diff --git a/include/mailbox.h b/include/mailbox.h index c64951b2f7..93f4715e16 100644 --- a/include/mailbox.h +++ b/include/mailbox.h @@ -44,6 +44,7 @@ struct udevice; * * @dev: The device which implements the mailbox. * @id: The mailbox channel ID within the provider. + * @con_priv: Hook for controller driver to attach private data * * Currently, the mailbox API assumes that a single integer ID is enough to * identify and configure any mailbox channel for any mailbox provider. If this @@ -56,11 +57,9 @@ struct udevice; */ struct mbox_chan { struct udevice *dev; - /* - * Written by of_xlate. We assume a single id is enough for now. In the - * future, we might add more fields here. - */ + /* Written by of_xlate.*/ unsigned long id; + void *con_priv; }; /**
Sometimes mbox controllers wants to store private data in mbox_chan so that it can be used at a later point of time. Adding support for hooking private data. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> --- include/mailbox.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)