]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/i915: Store port enum in intel_encoder
authorPandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>
Thu, 1 Jun 2017 13:19:20 +0000 (16:19 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 20 Jun 2017 10:18:38 +0000 (12:18 +0200)
commit5fc794866bbf2ee96dd15b83eeac0a0194ded08c
treef859ffd2a84e37b431b4d89338b5a28660592141
parent47aeb123db101003674aaa4d2c314aa9f44ca278
drm/i915: Store port enum in intel_encoder

BugLink: http://bugs.launchpad.net/bugs/1694665
Storing the port enum in intel_encoder makes it convenient to know the
port attached to an encoder. Moving the port information up from
intel_digital_port to intel_encoder avoids unecessary intel_digital_port
access and handles MST encoders cleanly without requiring conditional
checks for them (thanks danvet).

v2:
Renamed the port enum member from 'attached_port' to 'port' (danvet)
Fixed missing initialization of port in intel_sdvo.c (danvet)

v3:
Fixed missing initialization of port in intel_crt.c (Ville)

v4:
Storing port for DVO encoders too.

Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Lyude <cpaul@redhat.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1474334681-22690-3-git-send-email-dhinakaran.pandiyan@intel.com
(backported from commit 03cdc1d4f79573a59392986fb4b50c55d47cff71)
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
12 files changed:
ubuntu/i915/i915_drv.h
ubuntu/i915/intel_crt.c
ubuntu/i915/intel_ddi.c
ubuntu/i915/intel_dp.c
ubuntu/i915/intel_dp_mst.c
ubuntu/i915/intel_drv.h
ubuntu/i915/intel_dsi.c
ubuntu/i915/intel_dvo.c
ubuntu/i915/intel_hdmi.c
ubuntu/i915/intel_lvds.c
ubuntu/i915/intel_sdvo.c
ubuntu/i915/intel_tv.c