]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: mtk_scp: Only populate devices for SCP cores
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 11 Dec 2024 07:20:07 +0000 (15:20 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 16 Dec 2024 16:31:33 +0000 (09:31 -0700)
commitdbb9c372555c0b2a5a9264418bfba6d017752808
tree2a3ac2ca7e8fab46c10a143f8a6e200969bd7276
parent1dc7c8ed7cb378dd3974387692dfa833aee718d4
remoteproc: mtk_scp: Only populate devices for SCP cores

When multi-core SCP support was added, the driver was made to populate
platform devices for all the sub-nodes. This ended up adding platform
devices for the rpmsg sub-nodes as well, which never actually get used,
since rpmsg devices are registered through the rpmsg interface.

Limit of_platform_populate() to just populating the SCP cores with a
compatible string match list.

Fixes: 1fdbf0cdde98 ("remoteproc: mediatek: Probe SCP cluster on multi-core SCP")
Cc: Tinghan Shen <tinghan.shen@mediatek.com>
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20241211072009.120511-1-wenst@chromium.org
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/mtk_scp.c