]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/ddi: Simplify the port disabling via DDI_BUF_CTL
authorImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 14:19:56 +0000 (16:19 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 19:39:07 +0000 (21:39 +0200)
commitc729ff4598d023afb8f81de63e1363d4c2a7cd40
tree86953031a4f369fb2f35c47f4eb211ae0f991af8
parentd6e6cb5980ed8ad09cdcf3669056564b29b07585
drm/i915/ddi: Simplify the port disabling via DDI_BUF_CTL

A port can be disabled only via a modeset (or during HW state
sanitization) when the port is enabled. Thus it's not required to check
the port's enabled state before disabling it. In any case if the port
happened to be disabled, the following disabling would be just a nop and
waiting for the buffer's idle state should succeed. Simplify the
disabling sequence accordingly.

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