diff mbox series

[v1,2/2] drivers: sm: bind child sm devices in the device tree

Message ID 20231101140500.9025-3-avromanov@salutedevices.com
State Accepted
Commit e9f4f7789cdcda342b2f7edb82a6141f82f4c7c2
Delegated to: Neil Armstrong
Headers show
Series Meson A1: fix USB and NAND stack | expand

Commit Message

Alexey Romanov Nov. 1, 2023, 2:04 p.m. UTC
From: Dmitry Rokosov <ddrokosov@salutedevices.com>

One well-known sm child device that provides secure power control is the
Secure Power Controller. This device utilizes SMC calls to communicate
with power domains on the secure monitor side.

Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
---
 drivers/sm/meson-sm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Neil Armstrong Nov. 2, 2023, 1:36 p.m. UTC | #1
On 01/11/2023 15:04, Alexey Romanov wrote:
> From: Dmitry Rokosov <ddrokosov@salutedevices.com>
> 
> One well-known sm child device that provides secure power control is the
> Secure Power Controller. This device utilizes SMC calls to communicate
> with power domains on the secure monitor side.
> 
> Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
> Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
> ---
>   drivers/sm/meson-sm.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/sm/meson-sm.c b/drivers/sm/meson-sm.c
> index faef369f35..1dd1584855 100644
> --- a/drivers/sm/meson-sm.c
> +++ b/drivers/sm/meson-sm.c
> @@ -194,6 +194,7 @@ U_BOOT_DRIVER(meson_sm) = {
>   	.id = UCLASS_SM,
>   	.of_match = meson_sm_ids,
>   	.probe = meson_sm_probe,
> +	.bind = dm_scan_fdt_dev,
>   	.priv_auto = sizeof(struct meson_sm_priv),
>   	.ops = &sm_ops,
>   };

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
diff mbox series

Patch

diff --git a/drivers/sm/meson-sm.c b/drivers/sm/meson-sm.c
index faef369f35..1dd1584855 100644
--- a/drivers/sm/meson-sm.c
+++ b/drivers/sm/meson-sm.c
@@ -194,6 +194,7 @@  U_BOOT_DRIVER(meson_sm) = {
 	.id = UCLASS_SM,
 	.of_match = meson_sm_ids,
 	.probe = meson_sm_probe,
+	.bind = dm_scan_fdt_dev,
 	.priv_auto = sizeof(struct meson_sm_priv),
 	.ops = &sm_ops,
 };