firmware: meson_sm: populate platform devices from sm device tree data
authorDmitry Rokosov <ddrokosov@sberdevices.ru>
Fri, 24 Mar 2023 14:55:57 +0000 (17:55 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 27 Mar 2023 10:07:17 +0000 (12:07 +0200)
commite45f243409db98d610248c843b25435e7fb0baf3
treee8d25ccfe46fe204ab6129105bba4709a1804ddd
parent78e812f0406c765fc5623b1d68e3c6e86cb32e5a
firmware: meson_sm: populate platform devices from sm device tree data

In some meson boards, secure monitor device has children, for example,
power secure controller. By default, secure monitor isn't the bus in terms
of device tree subsystem, so the of_platform initialization code doesn't
populate its device tree data. As a result, secure monitor's children
aren't probed at all.

Run the 'of_platform_populate()' routine manually to resolve such issues.

Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20230324145557.27797-1-ddrokosov@sberdevices.ru
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/firmware/meson/meson_sm.c