]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/dp_tunnel: Split update_tunnel_state()
authorImre Deak <imre.deak@intel.com>
Thu, 19 Feb 2026 18:28:21 +0000 (20:28 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 25 Feb 2026 13:30:16 +0000 (15:30 +0200)
commitbcc7907398c84c139461b60925427955caf4db6a
treed143d2e49d886a64320d557b91c330f3f80da7bd
parent02feab823760cf08272b12901776e117616f1047
drm/i915/dp_tunnel: Split update_tunnel_state()

Split update_tunnel_state() into two helpers: one that updates the
tunnel state, and another that detects whether the tunnel bandwidth
has changed.

This prepares for a follow-up change that needs to compare the current
bandwidth against the value from before the DP tunnel was detected and
bandwidth allocation mode was enabled.

While at it, document the return value of update_tunnel_state().

Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260219182823.926702-4-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_tunnel.c