FROMLIST: drm/mipi: set fwnode when a mipi_dsi_device is registered

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.

Bug: 193933225
Link: https://lore.kernel.org/dri-devel/20210717000345.2345429-1-willmcvicker@google.com
Change-Id: I32140c4b87ee0b388ef93168ea4945ef7f21fe94
Suggested-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Will McVicker <willmcvicker@google.com>
Reviewed-by: Saravana Kannan <saravanak@google.com>
This commit is contained in:
Will McVicker
2021-07-09 23:11:34 -07:00
parent e51bdc82cb
commit a4e0097dd5

View File

@@ -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));