drm/i915: Don't change the status of forced connectors during HPD poll detect
authorImre Deak <imre.deak@intel.com>
Wed, 9 Aug 2023 10:43:07 +0000 (13:43 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 11 Aug 2023 13:08:53 +0000 (16:08 +0300)
commit4bed08d99c681f1564e4a633b33d8a6d0446c706
treeecdffb59f05ee92d6f8988c8a86f44c3b5a2e983
parentb77d010d82eac31e161833b8e75d2983e3056171
drm/i915: Don't change the status of forced connectors during HPD poll detect

As described in the previous patch a connector shouldn't change its
status while it's forced to a connected/disconnected state. This can
still happen while running the connector detect function to account for
lost HPD events in a low-power state.

Fix this by reusing the connector detect function which handles a
hotplug event and prevents updating the status for forced connectors as
expected.

Testcase: igt@kms_force_connector_basic@force-connector-state
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230809104307.1218058-3-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_hotplug.c