]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ehl: Make icp_digital_port_connected() use phy instead of port
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 27 Nov 2019 22:13:13 +0000 (14:13 -0800)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 3 Dec 2019 11:06:05 +0000 (13:06 +0200)
commit3ed6ba4209e893a87df8e5b6a207745f2d5ddfc4
tree327400160c29933b57676218b36de58ef284a0b6
parent5b9165fcc8792f806a0745f58ee2bea1613d6ebf
drm/i915/ehl: Make icp_digital_port_connected() use phy instead of port

When looking at SDEISR to determine the connection status of combo
outputs, we should use the phy index rather than the port index.
Although they're usually the same thing, EHL's DDI-D (port D) is
attached to PHY-A and SDEISR doesn't even have bits for a "D" output.
It's also possible that future platforms may map DDIs (the internal
display engine programming units) to PHYs (the output handling on the IO
side) in ways where port!=phy, so let's look at the PHY index by
default.

v2: Rename to intel_combo_phy_connected.  (Lucas)

Fixes: cfbdfb4c39a5 ("drm/i915/ehl: Enable DDI-D")
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191127221314.575575-2-matthew.d.roper@intel.com
(cherry picked from commit 3d1e388d4072dd240e558709d2f73605a742a723)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_dp.c