drm/i915: Stop duplicating the EDID fixed/downclock modes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Mar 2022 11:28:17 +0000 (14:28 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Mar 2022 11:28:17 +0000 (14:28 +0300)
commitccaa910128c52547102ba2e769cbadda5675df57
treec428bc3652415b80d923c1366098f46bee7a8715
parent3a3c4ce92962a42d5ee9b1db435b4b3ffa5a4fc4
drm/i915: Stop duplicating the EDID fixed/downclock modes

Instead of duplicating the fixed/downclock modes we can just grab
the originals straight from the probed_modes list and keep them.
The next .get_modes() is going to repopulate the probed_modes list
anyway so whatever we leave there is just going to sit around until
that time wasting memory. In fact let's clear out the probed modes
list entirely to make sure we get 100% consistent behaviour starting
already from the very first real .get_modes().

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