OSDN Git Service

drm/i915: Use intel_panel_mode_valid() for DSI/LVDS/(s)DVO
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 23 Sep 2021 20:01:05 +0000 (23:01 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 30 Sep 2021 08:19:08 +0000 (11:19 +0300)
commit8a567b1102270bd1bbbd6686cfe859aa891648b9
treefa965f4b296cc541ed7a98a826a71311fdbc27ae
parent082436068c19316d5153229fd1b48dceccd0efee
drm/i915: Use intel_panel_mode_valid() for DSI/LVDS/(s)DVO

All fixed mode panels should behave the same way when it comes to mode
filtering. Reuse the intel_panel_mode_valid() for all of them.

This changes the behaviour to match what we do for eDP, ie.
reject anything that doesn't exactly match the fixed mode
dimensions. Users can still manually provide different
sized modes which will be handled by the panel fitter just
as before. The difference is that we can no longer report
funny modes in the connector's mode list.

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