]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: Fix port lookup for SDI output
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 21 Aug 2019 18:32:26 +0000 (21:32 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 23 Aug 2019 08:01:52 +0000 (11:01 +0300)
commit1f15e6b6bb4ec2e4911321cfe282a4da6e47c6d2
tree91acd961fb72ebab17c85800ad0537670030110d
parent219a1eed174727174a543c71423756d8a8241c52
drm/omap: Fix port lookup for SDI output

When refactoring port lookup for DSS outputs, commit 3243b61ee6cc
("drm/omap: Factor out common init/cleanup code for output devices")
incorrectly hardcoded usage of DT port 0. This breaks operation for SDI
(which uses the DT port 1) and DPI outputs other than DPI0 (which are
not used in mainline DT sources).

Fix this by using the port number from the output omap_dss_device
of_ports field.

Fixes: 3243b61ee6cc ("drm/omap: Factor out common init/cleanup code for output devices")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190821183226.13784-1-laurent.pinchart@ideasonboard.com
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
drivers/gpu/drm/omapdrm/dss/output.c