]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: tcon: Generalize engine search algorithm
authorJernej Skrabec <jernej.skrabec@siol.net>
Mon, 25 Jun 2018 12:02:50 +0000 (14:02 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 27 Jun 2018 19:43:54 +0000 (21:43 +0200)
commit4bc7b09492e6d724d33489c0d169008a7f47bf7a
treeab223e4215e5e5375553528295206600e68f5d35
parentf476395b9d209a3a9f039454232cf744c2ca0e01
drm/sun4i: tcon: Generalize engine search algorithm

Current "old" method to find engine worked pretty well for DE2. However,
it doesn't work when TCON TOP is between  mixer (engine) and TCON. TCON
TOP has multiple input ports, but current engine search algorithm
expects only one.

This can be fixed by first looking for output port id and selecting
matching input by subtracting 1 for the next round. This work even if
there is only one input and output.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180625120304.7543-11-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun4i_tcon.c