mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
remoteproc: avoid registering a virtio device if not supported
Let remoteproc know when the firmware doesn't support any virtio functionality, so registering a virtio device can be avoided. This is needed for remote processors that doesn't require any virtio-based communications, but are still controlled via remoteproc. [[email protected]: write commit log] Signed-off-by: Mark Grosen <[email protected]> Signed-off-by: Ohad Ben-Cohen <[email protected]>
This commit is contained in:
parent
0798e1da7a
commit
7d2d3956fb
1 changed files with 1 additions and 1 deletions
|
|
@ -695,7 +695,7 @@ static int
|
|||
rproc_handle_virtio_rsc(struct rproc *rproc, struct fw_resource *rsc, int len)
|
||||
{
|
||||
struct device *dev = rproc->dev;
|
||||
int ret = 0;
|
||||
int ret = -ENODEV;
|
||||
|
||||
for (; len >= sizeof(*rsc); rsc++, len -= sizeof(*rsc))
|
||||
if (rsc->type == RSC_VIRTIO_DEV) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue