Browse Source

remoteproc/davinci: Add a trace to print missing ids

The remoteproc fixed ids for Davinci remoteprocs are required
by some rpmsg client drivers to identify a remote processor in
a fixed manner to userspace. Add a trace during probe to warn
developers if this unique id (alias id for DT devices and platform
device id for non-DT devices) is not defined for the DSP remoteproc
device.

Signed-off-by: Suman Anna <s-anna@ti.com>
Suman Anna 8 years ago
parent
commit
7bdfe07937
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/remoteproc/da8xx_remoteproc.c

+ 3 - 0
drivers/remoteproc/da8xx_remoteproc.c

@@ -352,6 +352,9 @@ static int da8xx_rproc_probe(struct platform_device *pdev)
 		goto free_rproc;
 	}
 
+	if (rproc_get_id(rproc) < 0)
+		dev_warn(dev, "device does not have an alias id or platform device id\n");
+
 	return 0;
 
 free_rproc: