]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Cache max common lane count
authorImre Deak <imre.deak@intel.com>
Fri, 22 May 2026 16:05:13 +0000 (19:05 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 25 May 2026 12:07:46 +0000 (15:07 +0300)
commitcc18eac531a656f9104f78a0d9358bb099080831
tree47f65acb64d357bc2f92858097c49659188f7a3e
parent0759e16078f01a2420db3bcba8c9c8911a7dd885
drm/i915/dp: Cache max common lane count

Cache the maximum common lane count together with the common link
rates.

This is safe because the cached value is updated:
- during driver probe, before the connector is registered and can be
  used for mode validation or modesetting
- during resume, before output HW state readout can query it
- during connector detection, right after updating the sink/link
  capabilities

Caching the value allows detecting max common lane count changes in
a follow-up change and keeps the tracking of max common lane count
aligned with that of common rates.

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260522160514.2628249-4-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c