[PATCH i-g-t v2 2/3] tests/chamelium/kms_chamelium_edid: Add connector check before plug
Naladala Ramanaidu
ramanaidu.naladala at intel.com
Tue Jan 7 20:54:33 UTC 2025
Add a check to reprobe the connector before plugging it back in.
This ensures the connector is in the disconnected state before
plugging it back in.
Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
---
tests/chamelium/kms_chamelium_edid.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/chamelium/kms_chamelium_edid.c b/tests/chamelium/kms_chamelium_edid.c
index ff2a19e48..649b89678 100644
--- a/tests/chamelium/kms_chamelium_edid.c
+++ b/tests/chamelium/kms_chamelium_edid.c
@@ -423,6 +423,10 @@ static void test_suspend_resume_edid_change(chamelium_data_t *data,
/* First plug in the port */
chamelium_set_edid(data, port, edid);
+
+ igt_assert(chamelium_reprobe_connector(&data->display, data->chamelium,
+ port) == DRM_MODE_DISCONNECTED);
+
chamelium_plug(data->chamelium, port);
igt_assert(igt_hotplug_detected(mon, CHAMELIUM_HOTPLUG_TIMEOUT));
--
2.43.0
More information about the igt-dev
mailing list