drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node
authorChen-Yu Tsai <wens@csie.org>
Thu, 23 Feb 2017 08:05:34 +0000 (16:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:37 +0000 (09:17 +0100)
commitc1315eea94ea76395918d6f5e9285de82ca023f7
tree023eb2e5dbb008dcdfd7d2f55c5a21c61299c1cb
parent7c4b9440c5c3490fb702ff3029f3e54ee9a2be91
drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node

[ Upstream commit 7544860733d158e3edbf309f27e79e258c8f66bd ]

The way drm_of_find_possible_crtcs works 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>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/sun4i/sun4i_crtc.c