linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/mipi: set fwnode when a mipi_dsi_device is registered
@ 2021-07-17  0:03 Will McVicker
  2021-08-31 17:52 ` Will McVicker
  0 siblings, 1 reply; 2+ messages in thread
From: Will McVicker @ 2021-07-17  0:03 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 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@google.com>
Signed-off-by: Will McVicker <willmcvicker@google.com>
Reviewed-by: Saravana Kannan <saravanak@google.com>
---
 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


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

* Re: [PATCH] drm/mipi: set fwnode when a mipi_dsi_device is registered
  2021-07-17  0:03 [PATCH] drm/mipi: set fwnode when a mipi_dsi_device is registered Will McVicker
@ 2021-08-31 17:52 ` Will McVicker
  0 siblings, 0 replies; 2+ messages in thread
From: Will McVicker @ 2021-08-31 17:52 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter
  Cc: dri-devel, Linux Kernel Mailing List, Saravana Kannan,
	Cc: Android Kernel

Hi All,

I'd like to send a reminder for a review on this patch.

Thanks,
Will


On Fri, Jul 16, 2021 at 5:03 PM Will McVicker <willmcvicker@google.com> wrote:
>
> 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@google.com>
> Signed-off-by: Will McVicker <willmcvicker@google.com>
> Reviewed-by: Saravana Kannan <saravanak@google.com>
> ---
>  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
>

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

end of thread, other threads:[~2021-08-31 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-17  0:03 [PATCH] drm/mipi: set fwnode when a mipi_dsi_device is registered Will McVicker
2021-08-31 17:52 ` Will McVicker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).