]> Gentwo Git Trees - linux/.git/commit
drm/i915/tc: Use the cached max lane count value
authorImre Deak <imre.deak@intel.com>
Tue, 5 Aug 2025 07:36:47 +0000 (10:36 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 13 Aug 2025 12:02:28 +0000 (15:02 +0300)
commitaaf01f66e0ee688f0df7eb941914c78fdecf1edd
tree81ce00330acdc6f834571d81f8de2d0d14efe036
parent1ebc27248ea0b81f0023ca28894ac40183b86b7c
drm/i915/tc: Use the cached max lane count value

Use the PHY's cached max lane count value on all platforms similarly to
LNL+. On LNL+ using the cached value is mandatory - since the
corresponding HW register field can get cleared by the time the value is
queried - on earlier platforms there isn't a problem with using the HW
register instead. Having a uniform way to query the value still makes
sense and it's also a bit more efficient, so do that.

Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://lore.kernel.org/r/20250805073700.642107-7-imre.deak@intel.com
Signed-off-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_tc.c