]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dp_mst: Add intel_dp_mst_{inc, dec}_active_streams()
authorImre Deak <imre.deak@intel.com>
Fri, 4 Apr 2025 15:03:06 +0000 (18:03 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 7 Apr 2025 13:25:12 +0000 (16:25 +0300)
commit59e8cd62f5a6f09cfdaf2847d051bac99ea4a8f3
tree7211dd46d4fa372b1076c815522b2f1e65a66f97
parentdb0f7e20c284dba5fb087dd09f56db9faed560f4
drm/i915/dp_mst: Add intel_dp_mst_{inc, dec}_active_streams()

Add helpers to increment/decrement the active MST stream count, instead
of open-coding these.

In mst_stream_pre_enable(), the increment will happen earlier, this is
ok, since nothing depends on the counter between the two points.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250404150310.1156696-3-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c