I don't understand how I can get an rproc handle. The remoteproc documentation states that rproc handle can be obtained as follows:
There are several ways to achieve that cleanly (devres, pdata,
the way remoteproc_rpmsg.c does this, or, if this becomes prevalent, we
might also consider using dev_archdata for this).
remoteproc_rpmsg.c (or nowadays remoteproc_virtio.c) uses a virtio device struct to get this, but I don't understand how I can get the virtio device struct. I don't understand how to get the rproc handle through devres or pdata either. My aim is to use rproc to start the DSP software. Currently I have no plans to use rproc for anything else (IPC etc.).
I can see that remoteproc API used to have rproc_get_by_name(), but that has been removed in the latest versions.
Could someone please point me to the right direction? Or if someone has an example on booting a DSP using remoteproc it would be greatly appreciated.