]> git.dujemihanovic.xyz Git - u-boot.git/commit
remoteproc: uclass: Modify uc_pdata->name to use combination of device name and devic...
authorMD Danish Anwar <danishanwar@ti.com>
Wed, 7 Aug 2024 09:08:29 +0000 (14:38 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 27 Aug 2024 17:17:39 +0000 (11:17 -0600)
commit6dd95456f741ab08e444c4c338ad43c09f11bea4
tree0d7ec5abe50aec9434aad0019152ca86eb6aa72c
parenta7026b0003ad610319b05e76ad2838fe5abe72ef
remoteproc: uclass: Modify uc_pdata->name to use combination of device name and device's parent name

uc_pdata->name is populated from device tree property "remoteproc-name".
For those devcices that don't set "remoteproc-name", uc_pdata->name
falls back to dev->name.

If two devices have same name, this will result into uc_pdata->name not
being unique and rproc_init() will fail.

Fix this by using combination of dev->name and dev->parent->name instead
of using just the dev->name to populate uc_pdata->name.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Andrew Davis <afd@ti.com>
drivers/remoteproc/rproc-uclass.c