]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:33 +0000 (07:18 +0200)
commit5a2ffd1ffa54f6f7e67bfdd84b83dad63d91282a
tree2ca20650750c725727bf802fbdc6d9245413a89b
parentfc45ccc7b85b69ec142689ebf423ff982591d5c2
drm/omap: Fix port lookup for SDI output

[ Upstream commit 8090f7eb318d4241625449252db2741e7703e027 ]

When refactoring port lookup for DSS outputs, commit d17eb4537a7e
("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: d17eb4537a7e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/omapdrm/dss/output.c