mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/i915/intel_sdvo: Check fixed_mode->clock against max_dotclock in mode_valid
For LVDS SDVO, mode validation checks the requested mode against the pipe max dotclock, but does not validate the selected fixed mode clock. After intel_panel_mode_valid(), get the fixed mode and validate its clock against the max dotclock. Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patch.msgid.link/20260430131220.3891497-2-ankit.k.nautiyal@intel.com
This commit is contained in:
parent
0161e2c201
commit
dae483da59
|
|
@ -1967,10 +1967,16 @@ intel_sdvo_mode_valid(struct drm_connector *connector,
|
|||
|
||||
if (IS_LVDS(intel_sdvo_connector)) {
|
||||
enum drm_mode_status status;
|
||||
const struct drm_display_mode *fixed_mode;
|
||||
|
||||
status = intel_panel_mode_valid(&intel_sdvo_connector->base, mode);
|
||||
if (status != MODE_OK)
|
||||
return status;
|
||||
|
||||
fixed_mode = intel_panel_fixed_mode(&intel_sdvo_connector->base, mode);
|
||||
|
||||
if (fixed_mode && fixed_mode->clock > max_dotclk)
|
||||
return MODE_CLOCK_HIGH;
|
||||
}
|
||||
|
||||
return MODE_OK;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user