mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/i915/dp: Validate sink format in .mode_valid()
Make sure the sink supports our chosen sink format. I suppose it might be at least possible that some PCONs might not snoop the EDID hard enough and filter out all the modes that they should. Also if we ever want to add a similar "force DVI" knob to DP outputs that we have for native HDMI, we'd need to manually get rid of anything DVI sinks can't handle. Cc: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260409101539.22032-8-ville.syrjala@linux.intel.com Tested-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
This commit is contained in:
parent
4802b7b6c0
commit
5c7a549671
|
|
@ -1457,6 +1457,10 @@ intel_dp_mode_valid_format(struct intel_connector *connector,
|
|||
int num_joined_pipes;
|
||||
int link_bpp_x16;
|
||||
|
||||
status = intel_dp_sink_format_valid(connector, mode, sink_format);
|
||||
if (status != MODE_OK)
|
||||
return status;
|
||||
|
||||
output_format = intel_dp_output_format(connector, sink_format);
|
||||
|
||||
max_link_clock = intel_dp_max_link_rate(intel_dp);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user