]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Suppress spurious combo PHY B warning
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Apr 2019 14:33:49 +0000 (17:33 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Apr 2019 13:35:50 +0000 (16:35 +0300)
On ICL the DMC doesn't reinit combo PHY B so we should not warn
about its state being bogus during the display core uninit.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190411143349.17934-1-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/intel_combo_phy.c

index 3d0271cebf9990913705a169bd83c9531074a917..2bf4359d7e41d9cbc9cdc21edae2106ab267e2fb 100644 (file)
@@ -239,7 +239,8 @@ void icl_combo_phys_uninit(struct drm_i915_private *dev_priv)
        for_each_combo_port_reverse(dev_priv, port) {
                u32 val;
 
-               if (!icl_combo_phy_verify_state(dev_priv, port))
+               if (port == PORT_A &&
+                   !icl_combo_phy_verify_state(dev_priv, port))
                        DRM_WARN("Port %c combo PHY HW state changed unexpectedly\n",
                                 port_name(port));