Skip to content

Commit 28adef8

Browse files
mattropetursulin
authored andcommitted
drm/i915/dg2: Print PHY name properly on calibration error
We need to use phy_name() to convert the PHY value into a human-readable character in the error message. Fixes: a6a1281 ("drm/i915/dg2: Wait for SNPS PHY calibration during display init") Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Swathi Dhanavanthri <swathi.dhanavanthri@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220215163545.2175730-1-matthew.d.roper@intel.com (cherry picked from commit 84073e5) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
1 parent ec663bc commit 28adef8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_snps_phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void intel_snps_phy_wait_for_calibration(struct drm_i915_private *dev_priv)
3434
if (intel_de_wait_for_clear(dev_priv, ICL_PHY_MISC(phy),
3535
DG2_PHY_DP_TX_ACK_MASK, 25))
3636
DRM_ERROR("SNPS PHY %c failed to calibrate after 25ms.\n",
37-
phy);
37+
phy_name(phy));
3838
}
3939
}
4040

0 commit comments

Comments
 (0)