Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1586727
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 02/11] drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node |
| Date | 2017-02-23 09:20 +0100 |
| Message-ID | <tdWN5-731-43@gated-at.bofh.it> (permalink) |
| References | <tdWN3-731-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The way drm_of_find_possible_crtcs is it tries to match the remote-endpoint of the given node's various endpoints to all the crtc's .port field. Thus we need to set drm_crtc.port to the output port node of the underlying TCON. Signed-off-by: Chen-Yu Tsai <wens@csie.org> --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_crtc.c b/drivers/gpu/drm/sun4i/sun4i_crtc.c index 4e2e89c3104f..de6f7da69746 100644 --- a/drivers/gpu/drm/sun4i/sun4i_crtc.c +++ b/drivers/gpu/drm/sun4i/sun4i_crtc.c @@ -19,6 +19,7 @@ #include <linux/clk-provider.h> #include <linux/ioport.h> #include <linux/of_address.h> +#include <linux/of_graph.h> #include <linux/of_irq.h> #include <linux/regmap.h> @@ -136,5 +137,9 @@ struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm) drm_crtc_helper_add(&scrtc->crtc, &sun4i_crtc_helper_funcs); + /* Set crtc.port to output port node of the tcon */ + scrtc->crtc.port = of_graph_get_port_by_id(drv->tcon->dev->of_node, + 1); + return scrtc; } -- 2.11.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/11] drm/sun4i: Various fixes and cleanups part 2 Chen-Yu Tsai <wens@csie.org> - 2017-02-23 09:20 +0100
[PATCH 11/11] drm/sun4i: Add backend and tcon pointers to sun4i_crtc Chen-Yu Tsai <wens@csie.org> - 2017-02-23 09:20 +0100
Re: [PATCH 11/11] drm/sun4i: Add backend and tcon pointers to sun4i_crtc Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-23 19:50 +0100
[PATCH 02/11] drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node Chen-Yu Tsai <wens@csie.org> - 2017-02-23 09:20 +0100
Re: [PATCH 02/11] drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-23 19:30 +0100
csiph-web