From: <sunpeng.li-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Leo Li <sunpeng.li-5C7GfCeVMHo@public.gmane.org>,
Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
ville.syrjala-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
Subject: [PATCH 08/10] drm/nouveau/kms/nv50: Implement MST Aux device registration
Date: Thu, 4 Jul 2019 15:05:17 -0400 [thread overview]
Message-ID: <20190704190519.29525-9-sunpeng.li@amd.com> (raw)
In-Reply-To: <20190704190519.29525-1-sunpeng.li-5C7GfCeVMHo@public.gmane.org>
From: Leo Li <sunpeng.li@amd.com>
Implement late_register and early_unregister hooks for MST connectors.
Call drm helpers for MST connector registration, which registers the
AUX devices.
Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Leo Li <sunpeng.li@amd.com>
---
drivers/gpu/drm/nouveau/dispnv50/disp.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index 7ba373f493b2..6d0fbb6036cf 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -1019,6 +1019,24 @@ nv50_mstc_destroy(struct drm_connector *connector)
kfree(mstc);
}
+static int
+nv50_mstc_late_register(struct drm_connector *connector)
+{
+ struct nv50_mstc *mstc = nv50_mstc(connector);
+ struct drm_dp_mst_port *port = mstc->port;
+
+ return drm_dp_mst_connector_late_register(connector, port);
+}
+
+static void
+nv50_mstc_early_unregister(struct drm_connector *connector)
+{
+ struct nv50_mstc *mstc = nv50_mstc(connector);
+ struct drm_dp_mst_port *port = mstc->port;
+
+ drm_dp_mst_connector_early_unregister(connector, port);
+}
+
static const struct drm_connector_funcs
nv50_mstc = {
.reset = nouveau_conn_reset,
@@ -1029,6 +1047,8 @@ nv50_mstc = {
.atomic_destroy_state = nouveau_conn_atomic_destroy_state,
.atomic_set_property = nouveau_conn_atomic_set_property,
.atomic_get_property = nouveau_conn_atomic_get_property,
+ .late_register = nv50_mstc_late_register,
+ .early_unregister = nv50_mstc_early_unregister,
};
static int
--
2.22.0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2019-07-04 19:05 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-04 19:05 [PATCH 00/10] Enable MST Aux devices (v2) sunpeng.li-5C7GfCeVMHo
[not found] ` <20190704190519.29525-1-sunpeng.li-5C7GfCeVMHo@public.gmane.org>
2019-07-04 19:05 ` [PATCH 01/10] drm/dp: Use non-cyclic idr sunpeng.li-5C7GfCeVMHo
2019-07-04 19:05 ` [PATCH 02/10] drm/dp_mst: Enable registration of AUX devices for MST ports (v2) sunpeng.li-5C7GfCeVMHo
[not found] ` <20190704190519.29525-3-sunpeng.li-5C7GfCeVMHo@public.gmane.org>
2019-07-10 19:51 ` Lyude Paul
2019-07-10 23:25 ` Lyude Paul
2019-07-04 19:05 ` [PATCH 04/10] drm/nouveau: Use connector kdev as aux device parent sunpeng.li-5C7GfCeVMHo
2019-07-12 19:55 ` Lyude Paul
2019-07-04 19:05 ` [PATCH 05/10] drm/bridge/analogix-anx78xx: " sunpeng.li-5C7GfCeVMHo
2019-07-04 19:05 ` [PATCH 06/10] drm/amd/display: " sunpeng.li-5C7GfCeVMHo
2019-07-04 19:05 ` [PATCH 07/10] drm/i915: Implement MST Aux device registration sunpeng.li-5C7GfCeVMHo
2019-07-10 10:06 ` Ville Syrjälä
2019-07-12 19:48 ` Lyude Paul
2019-07-12 20:05 ` Ville Syrjälä
[not found] ` <20190712200559.GN5942-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2019-07-12 20:15 ` Ville Syrjälä
2019-07-23 14:01 ` Li, Sun peng (Leo)
2019-07-04 19:05 ` sunpeng.li-5C7GfCeVMHo [this message]
2019-07-12 19:54 ` [PATCH 08/10] drm/nouveau/kms/nv50: " Lyude Paul
2019-07-04 19:05 ` [PATCH 09/10] drm/radeon: " sunpeng.li-5C7GfCeVMHo
2019-07-04 19:05 ` [PATCH 10/10] drm/amd/display: " sunpeng.li-5C7GfCeVMHo
2019-07-09 19:10 ` [PATCH 00/10] Enable MST Aux devices (v2) Li, Sun peng (Leo)
2019-07-04 19:05 ` [PATCH 03/10] drm/sysfs: Add mstpath attribute to connector devices sunpeng.li
[not found] ` <20190704190519.29525-4-sunpeng.li-5C7GfCeVMHo@public.gmane.org>
2019-07-04 19:33 ` Ville Syrjälä
2019-07-05 14:03 ` Li, Sun peng (Leo)
2019-07-05 14:32 ` [PATCH v2] " sunpeng.li-5C7GfCeVMHo
[not found] ` <20190705143220.11109-1-sunpeng.li-5C7GfCeVMHo@public.gmane.org>
2019-07-10 10:07 ` Ville Syrjälä
2019-07-10 22:50 ` Lyude Paul
[not found] ` <346980b73f3b1fbbc70cbf3771788cec0777d4c0.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2019-07-16 18:28 ` Li, Sun peng (Leo)
2019-07-16 20:28 ` Lyude Paul
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=20190704190519.29525-9-sunpeng.li@amd.com \
--to=sunpeng.li-5c7gfcevmho@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=ville.syrjala-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
/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