drm/i915/dg2: Print PHY name properly on calibration error
authorjsg <jsg@openbsd.org>
Wed, 2 Mar 2022 13:09:56 +0000 (13:09 +0000)
committerjsg <jsg@openbsd.org>
Wed, 2 Mar 2022 13:09:56 +0000 (13:09 +0000)
From Matt Roper
d064d0c39405a7f0fc76d9b70ce9fb3bf434fe05 in linux 5.15.y/5.15.26
28adef861233c6fce47372ebd2070b55eaa8e899 in mainline linux

sys/dev/pci/drm/i915/display/intel_snps_phy.c

index 18b52b6..536b319 100644 (file)
@@ -32,7 +32,7 @@ void intel_snps_phy_wait_for_calibration(struct drm_i915_private *dev_priv)
                if (intel_de_wait_for_clear(dev_priv, ICL_PHY_MISC(phy),
                                            DG2_PHY_DP_TX_ACK_MASK, 25))
                        DRM_ERROR("SNPS PHY %c failed to calibrate after 25ms.\n",
-                                 phy);
+                                 phy_name(phy));
        }
 }