]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i915/tgl: select correct bit for port select
authorMahesh Kumar <mahesh1.kumar@intel.com>
Sat, 13 Jul 2019 01:09:20 +0000 (18:09 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 26 Jul 2019 22:02:17 +0000 (15:02 -0700)
commitdf16b6361d888409a9e2f9ae777c8d5dde2e76b8
tree9416256d3219daa4a4fc4b81ec9fba7eb056f6bf
parent98a5c2a3582a86d5acdcdeabbe0e6278e712201e
drm/i915/tgl: select correct bit for port select

Bit definitions for port-select got changed for TRANS_CLK_SEL &
TRANS_DDI_FUNC_CTL registers in TGL.

v2 (Lucas):
  - Nuke TRANS_DDI_PORT_NONE since it's 0: we are already clearing
    {TGL_,}TRANS_DDI_PORT_MASK (suggested by Ville)
  - Also cover haswell_get_ddi_port_state() in intel_display.c that was
    missing
  - Define macros using the _SHIFT macros so we don't lose other users

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190713010940.17711-3-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/i915_reg.h