drm/i915/ddi: Simplify waiting for a port to get active/idle via DDI_BUF_CTL
authorImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 14:19:57 +0000 (16:19 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 19:39:07 +0000 (21:39 +0200)
commit3c45d88d281ea87768007ab80c6d1400f6921b05
tree733d268798f684800f5fe80cdf714fb4ec46583b
parentc729ff4598d023afb8f81de63e1363d4c2a7cd40
drm/i915/ddi: Simplify waiting for a port to get active/idle via DDI_BUF_CTL

When waiting for a port to get active/idle there is no point in the
complexity of specifying an exact timeout and for that the suitable wait
API instead of just using the maximum timeout. The sequence in
particular is not performance critical at all either and due to
scheduling it's not guaranteed anyhow how long the wait will last at the
given timescale. In the usual case where the wait succeeds the actual
time waited does not change with the increased timeout.

Simplify things accordingly, describing the bspec platform specific
timeouts in code comments.

v2: Clarify the rationale in the commit log. (Jani)

Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250214142001.552916-8-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c