drm/i915: Move WaPruneModeWithIncorrectHsyncOffset into intel_mode_valid()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 30 Sep 2021 10:41:33 +0000 (13:41 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 1 Oct 2021 13:09:45 +0000 (16:09 +0300)
commitab953f099fd7d0c28d3e35dcd008651aad57db6f
treecadb772fa40089518e5a94c19531c10b36097855
parent0fb00cc28e1ed1e9052f3231acfd085471d0397b
drm/i915: Move WaPruneModeWithIncorrectHsyncOffset into intel_mode_valid()

Check for the zero length front porch already in intel_mode_valid()
so that we get the same validation for both get_modes() and setcrtc()/etc.

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