drm/i915/display: ignore long HPDs based on a flag
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Wed, 15 Feb 2023 08:38:31 +0000 (10:38 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 16 Mar 2023 14:47:11 +0000 (16:47 +0200)
commitb0fbef65e227ad4ea81bf2ad3d17d073bd0c68de
treea838724e92c1f8018969d7c911e7277164caaf14
parent81e291d6f4296759df03666ca008453cd0e86821
drm/i915/display: ignore long HPDs based on a flag

Some panels generate long HPD events even while connected to
the port. This cause some unexpected CI execution issues. A
new flag is added to track if such spurious long HPDs can be
ignored and are not processed further if the flag is set.
Debugfs entry is added to control the ignore long hpd flag.

v2: Address patch styling comments (Jani Nikula)

v3: Ignoring the HPD moved to hotplug handler and now applies
    to all types of outputs (Imre Deak)

v4: use debugfs_create_bool and squash patches (Jani Nikula)

Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230215083832.287519-2-vinod.govindapillai@intel.com
drivers/gpu/drm/i915/display/intel_display_core.h
drivers/gpu/drm/i915/display/intel_hotplug.c