From: Will McVicker <willmcvicker@google.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Will McVicker <willmcvicker@google.com>,
Saravana Kannan <saravanak@google.com>,
kernel-team@android.com
Subject: [PATCH] drm/mipi: set fwnode when a mipi_dsi_device is registered
Date: Sat, 17 Jul 2021 00:03:45 +0000 [thread overview]
Message-ID: <20210717000345.2345429-1-willmcvicker@google.com> (raw)
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
next reply other threads:[~2021-07-17 0:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-17 0:03 Will McVicker [this message]
2021-08-31 17:52 ` [PATCH] drm/mipi: set fwnode when a mipi_dsi_device is registered Will McVicker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210717000345.2345429-1-willmcvicker@google.com \
--to=willmcvicker@google.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=saravanak@google.com \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox