public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/mipi: set fwnode when a mipi_dsi_device registers itself
@ 2021-07-10  6:45 Will McVicker
  2021-07-16 17:56 ` Saravana Kannan
  0 siblings, 1 reply; 2+ messages in thread
From: Will McVicker @ 2021-07-10  6:45 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Daniel Vetter
  Cc: dri-devel, linux-kernel, Will McVicker, Saravana Kannan,
	kernel-team

This is needed for fw_devlink to work properly with MIPI DSI devices.
Without setting the device's fwnode, the sync state framework isn't able
to properly track device links between the MIPI DSI device and its
suppliers which may result in its supplier probing before the mipi
device.

Suggested-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Will McVicker <willmcvicker@google.com>
---
 drivers/gpu/drm/drm_mipi_dsi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c
index 5dd475e82995..469d56cf2a50 100644
--- a/drivers/gpu/drm/drm_mipi_dsi.c
+++ b/drivers/gpu/drm/drm_mipi_dsi.c
@@ -222,6 +222,7 @@ mipi_dsi_device_register_full(struct mipi_dsi_host *host,
 	}
 
 	dsi->dev.of_node = info->node;
+	dsi->dev.fwnode = of_fwnode_handle(info->node);
 	dsi->channel = info->channel;
 	strlcpy(dsi->name, info->type, sizeof(dsi->name));
 
-- 
2.32.0.93.g670b81a890-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-16 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-10  6:45 [PATCH] drm/mipi: set fwnode when a mipi_dsi_device registers itself Will McVicker
2021-07-16 17:56 ` Saravana Kannan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox