]> git.baikalelectronics.ru Git - 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)
commitf1e612e082c2e2cc65be87db1a542364cee5729f
tree9416256d3219daa4a4fc4b81ec9fba7eb056f6bf
parent9c0ef589848b4285d35be42f58b00615063b63e2
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