[PATCH] drm/mipi: set fwnode when a mipi_dsi_device is registered

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This allows the fw_devlink feature to work across mipi_dsi bus devices too.
This feature avoids unnecessary probe deferrals of mipi_dsi devices, defers
consumers of mipi_dsi devices till the mipi_dsi devices probe, and allows
mipi_dsi drivers to implement sync_state() callbacks.

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

v2:
 Thanks Saravana for the comments! I updated the commit message and added your
 reviewed-by.

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.402.g57bb445576-goog




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux