]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Remove a few redundant glk checks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 12 Apr 2021 05:46:07 +0000 (08:46 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 14 Apr 2021 09:32:33 +0000 (12:32 +0300)
Now that glk display version is 10 we can drop a few more glk checks.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210412054607.18133-6-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/skl_universal_plane.c

index e208ded9a6880eaeb6593cd7093f1f6c94dc10d6..79ece9e45d66f28e87eaa7f83e086a6fc8b7a52a 100644 (file)
@@ -176,7 +176,7 @@ static void intel_wait_ddi_buf_active(struct drm_i915_private *dev_priv,
                                      enum port port)
 {
        /* Wait > 518 usecs for DDI_BUF_CTL to be non idle */
-       if (DISPLAY_VER(dev_priv) < 10 && !IS_GEMINILAKE(dev_priv)) {
+       if (DISPLAY_VER(dev_priv) < 10) {
                usleep_range(518, 1000);
                return;
        }
index 7ffd7b570b54d3413443dd736425b2259253618f..32bfd984be5c6f0039d6c477e21dd138a4cef6a8 100644 (file)
@@ -829,7 +829,7 @@ static u32 skl_plane_ctl(const struct intel_crtc_state *crtc_state,
 
        plane_ctl = PLANE_CTL_ENABLE;
 
-       if (DISPLAY_VER(dev_priv) < 10 && !IS_GEMINILAKE(dev_priv)) {
+       if (DISPLAY_VER(dev_priv) < 10) {
                plane_ctl |= skl_plane_ctl_alpha(plane_state);
                plane_ctl |= PLANE_CTL_PLANE_GAMMA_DISABLE;