Introduce a void pointer in the k3_{m4/dsp}_rproc internal data
structure which can be used to point to any private data needed by the
driver. Currently, the M4/DSP drivers do not have any private data, so
the pointer can be left pointing to NULL.
This is done to align the data structures with R5 driver which can be
factored out at a later stage.
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Tested-by: Judith Mendez <jm@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20250513054510.3439842-10-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
* @ti_sci_id: TI-SCI device identifier
* @mbox: mailbox channel handle
* @client: mailbox client to request the mailbox channel
+ * @priv: Remote processor private data
*/
struct k3_dsp_rproc {
struct device *dev;
u32 ti_sci_id;
struct mbox_chan *mbox;
struct mbox_client client;
+ void *priv;
};
/**
* @ti_sci_id: TI-SCI device identifier
* @mbox: mailbox channel handle
* @client: mailbox client to request the mailbox channel
+ * @priv: Remote processor private data
*/
struct k3_m4_rproc {
struct device *dev;
u32 ti_sci_id;
struct mbox_chan *mbox;
struct mbox_client client;
+ void *priv;
};
/**