Skip to contentSkip to conversation

drm/mipi-dsi: Set the fwnode for mipi_dsi_device

PATCH Applied Saravana Kannan 3 participants 7 messages Mar 10, 2023 – May 4, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/mipi-dsi: Set the fwnode for mipi_dsi_device

After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust"), fw_devlink prints an error when consumer devices don't have their fwnode set. This used to be ignored silently.

Set the fwnode mipi_dsi_device so fw_devlink can find them and properly track their dependencies.

This fixes errors like this:

[    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device link with regulator-lcd-1v8
[    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device link with backlight-dsi
---
 drivers/gpu/drm/drm_mipi_dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_mipi_dsi.c +1 -1
index b41aaf2bb9f1..7923cc21b78e 100644
@@ -221,7 +221,7 @@ mipi_dsi_device_register_full(struct mipi_dsi_host *host,
 		return dsi;
 	}
 
-	dsi->dev.of_node = info->node;
+	device_set_node(&dsi->dev, of_fwnode_handle(info->node));
 	dsi->channel = info->channel;
 	strlcpy(dsi->name, info->type, sizeof(dsi->name));
 
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
#1 lore raw

Am Donnerstag, dem 09.03.2023 um 22:39 -0800 schrieb Saravana Kannan:

Quoted 9 lines

After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust"), fw_devlink prints an error when consumer devices don't have their fwnode set. This used to be ignored silently.

Set the fwnode mipi_dsi_device so fw_devlink can find them and properly
track their dependencies.

Quoted 7 lines

This fixes errors like this:
[    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device link with regulator-lcd-1v8
[    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device link with backlight-dsi

thanks,
martin

Quoted 23 lines

Link:
https://lore.kernel.org/lkml/[email protected]/

Fixes 068a00233969 ("drm: Add MIPI DSI bus support")

---
 drivers/gpu/drm/drm_mipi_dsi.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_mipi_dsi.c +0 -0
index b41aaf2bb9f1..7923cc21b78e 100644
@@ -221,7 +221,7 @@ mipi_dsi_device_register_full(struct
 mipi_dsi_host *host,
                 return dsi;
         }


-       dsi->dev.of_node = info->node;
+       device_set_node(&dsi->dev, of_fwnode_handle(info->node)); dsi->channel = info->channel; strlcpy(dsi->name, info->type, sizeof(dsi->name));

#2 lore raw
Quoted 17 lines · Martin Kepplinger

Am Donnerstag, dem 09.03.2023 um 22:39 -0800 schrieb Saravana Kannan:

Quoted 15 lines

After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust"), fw_devlink prints an error when consumer devices don't have their fwnode set. This used to be ignored silently.

Set the fwnode mipi_dsi_device so fw_devlink can find them and properly
track their dependencies.

This fixes errors like this:

[    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device
link with regulator-lcd-1v8
[    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device

link with backlight-dsi

Quoted 3 lines
Quoted 1 line

Maintainers,

Nudge nudge. Will this be picked up for 6.3-rcX?

-Saravana

Quoted 32 lines

thanks,
martin

Quoted 15 lines

Link:
https://lore.kernel.org/lkml/[email protected]/

Fixes 068a00233969 ("drm: Add MIPI DSI bus support")
---
 drivers/gpu/drm/drm_mipi_dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_mipi_dsi.c +0 -0
index b41aaf2bb9f1..7923cc21b78e 100644

drivers/gpu/drm/drm_mipi_dsi.c mipi_dsi_device_register_full(struct · line 227

Quoted 8 lines
drivers/gpu/drm/drm_mipi_dsi.c +1 -1
@@ -221,7 +221,7 @@ mipi_dsi_device_register_full(struct
 mipi_dsi_host *host,
                return dsi;
        }
 
-       dsi->dev.of_node = info->node;
+       device_set_node(&dsi->dev, of_fwnode_handle(info->node));
        dsi->channel = info->channel;
        strlcpy(dsi->name, info->type, sizeof(dsi->name));

--
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

#3 lore raw
Quoted 20 lines · Saravana Kannan
Quoted 17 lines · Martin Kepplinger

Am Donnerstag, dem 09.03.2023 um 22:39 -0800 schrieb Saravana Kannan:

Quoted 15 lines

After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust"), fw_devlink prints an error when consumer devices don't have their fwnode set. This used to be ignored silently.

Set the fwnode mipi_dsi_device so fw_devlink can find them and properly
track their dependencies.

This fixes errors like this:

[    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device
link with regulator-lcd-1v8
[    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device

link with backlight-dsi

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Maintainers,

Nudge nudge. Will this be picked up for 6.3-rcX?

Greg,

Can you pick this up please? It's a fix that hasn't been picked up for a few months.

Here's the link to the actual patch for your convenience:
https://lore.kernel.org/lkml/[email protected]/#t

-Saravana

Quoted 35 lines

-Saravana

Quoted 32 lines

thanks,
martin

Quoted 15 lines

Link:
https://lore.kernel.org/lkml/[email protected]/

Fixes 068a00233969 ("drm: Add MIPI DSI bus support")
---
 drivers/gpu/drm/drm_mipi_dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_mipi_dsi.c +0 -0
index b41aaf2bb9f1..7923cc21b78e 100644

drivers/gpu/drm/drm_mipi_dsi.c mipi_dsi_device_register_full(struct · line 227

Quoted 8 lines
drivers/gpu/drm/drm_mipi_dsi.c +1 -1
@@ -221,7 +221,7 @@ mipi_dsi_device_register_full(struct
 mipi_dsi_host *host,
                return dsi;
        }
 
-       dsi->dev.of_node = info->node;
+       device_set_node(&dsi->dev, of_fwnode_handle(info->node));
        dsi->channel = info->channel;
        strlcpy(dsi->name, info->type, sizeof(dsi->name));

--
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

#4 lore raw

Hi Saravana,

Quoted 29 lines · Saravana Kannan
Quoted 20 lines · Saravana Kannan
Quoted 17 lines · Martin Kepplinger

Am Donnerstag, dem 09.03.2023 um 22:39 -0800 schrieb Saravana Kannan:

Quoted 15 lines

After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust"), fw_devlink prints an error when consumer devices don't have their fwnode set. This used to be ignored silently.

Set the fwnode mipi_dsi_device so fw_devlink can find them and properly
track their dependencies.

This fixes errors like this:

[    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device
link with regulator-lcd-1v8
[    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device

link with backlight-dsi

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Maintainers,

Nudge nudge. Will this be picked up for 6.3-rcX?

Quoted 7 lines

Greg,

Can you pick this up please? It's a fix that hasn't been picked up for a few months.

Here's the link to the actual patch for your convenience:
https://lore.kernel.org/lkml/[email protected]/#t

Sorry, I'm not quite sure what happened. I've applied it to drm-misc-fixes

Maxime

#5 lore raw
Quoted 35 lines · Maxime Ripard

Hi Saravana,

Quoted 31 lines · Saravana Kannan
Quoted 20 lines · Saravana Kannan
Quoted 17 lines · Martin Kepplinger

Am Donnerstag, dem 09.03.2023 um 22:39 -0800 schrieb Saravana Kannan:

Quoted 15 lines

After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust"), fw_devlink prints an error when consumer devices don't have their fwnode set. This used to be ignored silently.

Set the fwnode mipi_dsi_device so fw_devlink can find them and properly
track their dependencies.

This fixes errors like this:

[    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device
link with regulator-lcd-1v8
[    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device

link with backlight-dsi

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Maintainers,

Nudge nudge. Will this be picked up for 6.3-rcX?

Greg,

Quoted 7 lines
Quoted 5 lines

Can you pick this up please? It's a fix that hasn't been picked up for a few months.

Here's the link to the actual patch for your convenience:
https://lore.kernel.org/lkml/[email protected]/#t

Sorry, I'm not quite sure what happened. I've applied it to drm-misc-fixes

No worries. Thanks Maxime!

-Saravana

#6 lore raw
In reply to Saravana Kannan
Quoted 8 lines · Saravana Kannan

After commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust"), fw_devlink prints an error when consumer devices don't have their fwnode set. This used to be ignored silently.

Set the fwnode mipi_dsi_device so fw_devlink can find them and properly track their dependencies.

[...]

Applied to drm/drm-misc (drm-misc-fixes).

Thanks!
Maxime