diff mbox series

of/platform: Inform about created platform devices using pr_debug()

Message ID 20240222153119.2026363-2-u.kleine-koenig@pengutronix.de
State Accepted
Headers show
Series of/platform: Inform about created platform devices using pr_debug() | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied fail build log

Commit Message

Uwe Kleine-König Feb. 22, 2024, 3:31 p.m. UTC
For most nodes with a compatible property a platform device is created.
For some an amba device is created instead. For the latter
of_amba_device_create() emits a message at debug level about the node
the device is created from. Add a similar message to
of_platform_device_create_pdata() to inform about the whole list of
created devices.

This also gives the right context for the following messages that
inform about created child devices.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/of/platform.c | 2 ++
 1 file changed, 2 insertions(+)


base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d

Comments

Rob Herring (Arm) March 1, 2024, 5:29 p.m. UTC | #1
On Thu, 22 Feb 2024 16:31:20 +0100, Uwe Kleine-König wrote:
> For most nodes with a compatible property a platform device is created.
> For some an amba device is created instead. For the latter
> of_amba_device_create() emits a message at debug level about the node
> the device is created from. Add a similar message to
> of_platform_device_create_pdata() to inform about the whole list of
> created devices.
> 
> This also gives the right context for the following messages that
> inform about created child devices.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/of/platform.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index b7708a06dc78..ba964df6b6db 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -166,6 +166,8 @@  static struct platform_device *of_platform_device_create_pdata(
 {
 	struct platform_device *dev;
 
+	pr_debug("create platform device: %pOF\n", np);
+
 	if (!of_device_is_available(np) ||
 	    of_node_test_and_set_flag(np, OF_POPULATED))
 		return NULL;