drm/i915/dg2: Skip output init on PHY calibration failure
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 23 Feb 2022 16:54:21 +0000 (08:54 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 25 Feb 2022 01:16:51 +0000 (17:16 -0800)
commitb4eb76d82a0ea92241f5079874a7aea10c5cc4ae
tree7d547b3d34316d4f1db4ea12de69e55828e62d21
parent772ba8d68515fb8d5414eb714a1d4d446903eb13
drm/i915/dg2: Skip output init on PHY calibration failure

If one of our PHYs fails to complete calibration, we should skip the
general initialization of the corresponding output.  Most likely this is
going to happen on outputs that don't actually exist on the board; in
theory we should have already decided to skip this output based on the
VBT, but we can't always rely on the VBT being accurate.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220223165421.3949883-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_snps_phy.c
drivers/gpu/drm/i915/i915_drv.h