Files
linux/drivers/gpu/drm
Ankit Nautiyal 9cdd4ec956 drm/i915/intel_panel: Avoid calls to intel_panel_fixed_mode() in mode_valid
Currently, most callers of intel_panel_mode_valid() also call
intel_panel_fixed_mode(). This is done either to check for the presence of
a fixed mode for the connector or to get the clock of the fixed mode, which
is then compared against the max dotclock for the pipe.

Since intel_panel_mode_valid() already calls intel_panel_fixed_mode()
internally, we can avoid yet another call to intel_panel_fixed_mode() from
the caller.

Remove the redundant call to intel_panel_fixed_mode() in mode_valid paths.
To get the clock for the fixed mode, extend the helper
intel_panel_mode_valid() to accept 'target_clock' as an out param.
The 'target_clock' can then be used by the callers to check 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-3-ankit.k.nautiyal@intel.com
2026-05-11 09:50:54 +05:30
..
2025-10-31 10:34:52 +02:00
2026-04-07 12:36:31 +02:00
2026-03-10 09:42:09 +08:00
2026-03-11 11:18:31 +01:00
2026-03-11 11:18:31 +01:00
2025-10-31 10:34:52 +02:00
2026-04-07 12:36:31 +02:00
2026-03-17 17:50:49 +01:00
2026-03-13 18:02:32 -03:00
2026-04-07 12:36:31 +02:00
2025-10-31 10:34:52 +02:00
2026-04-07 12:36:31 +02:00
2026-03-12 07:23:23 -07:00