mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
remoteproc: k3-m4: Add pointer to rproc struct within k3_m4_rproc
Add a pointer to the rproc struct within k3_m4_rproc internal struct. This is done to align the M4 internal rproc data structure 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-11-b-padhi@ti.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
This commit is contained in:
parent
db47cfd8fc
commit
b810142db6
|
|
@ -50,6 +50,7 @@ struct k3_m4_rproc_mem_data {
|
|||
/**
|
||||
* struct k3_m4_rproc - k3 remote processor driver structure
|
||||
* @dev: cached device pointer
|
||||
* @rproc: remoteproc device handle
|
||||
* @mem: internal memory regions data
|
||||
* @num_mems: number of internal memory regions
|
||||
* @rmem: reserved memory regions data
|
||||
|
|
@ -64,6 +65,7 @@ struct k3_m4_rproc_mem_data {
|
|||
*/
|
||||
struct k3_m4_rproc {
|
||||
struct device *dev;
|
||||
struct rproc *rproc;
|
||||
struct k3_m4_rproc_mem *mem;
|
||||
int num_mems;
|
||||
struct k3_m4_rproc_mem *rmem;
|
||||
|
|
@ -580,6 +582,7 @@ static int k3_m4_rproc_probe(struct platform_device *pdev)
|
|||
rproc->recovery_disabled = true;
|
||||
kproc = rproc->priv;
|
||||
kproc->dev = dev;
|
||||
kproc->rproc = rproc;
|
||||
platform_set_drvdata(pdev, rproc);
|
||||
|
||||
kproc->ti_sci = devm_ti_sci_get_by_phandle(dev, "ti,sci");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user