drm/i915/dp: Assume panel power is off if runtime suspended
authorImre Deak <imre.deak@intel.com>
Wed, 9 Oct 2024 19:43:55 +0000 (22:43 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 11 Oct 2024 11:55:01 +0000 (14:55 +0300)
commitfef0bcf72b9506019ecd5440061d7df7f50b02b0
tree48bf034a2a399efc0bd298156433ea5524079a54
parent388629a219ace83a09f8431a2e709c6c2efcf6ee
drm/i915/dp: Assume panel power is off if runtime suspended

If the device is runtime suspended the eDP panel power is also off.
Ignore a short HPD on eDP if the device is suspended accordingly,
instead of checking the panel power state via the PPS registers for the
same purpose. The latter involves runtime resuming the device
unnecessarily, in a frequent scenario where the panel generates a
spurious short HPD after disabling the panel power and the device is
runtime suspended.

Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241009194358.1321200-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/intel_runtime_pm.h
drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h