mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user