[igt-dev] [PATCH i-g-t 1/3] lib/igt_chamelium: reset chamelium before starting autodiscovery

Kunal Joshi kunal1.joshi at intel.com
Thu Jul 13 09:17:24 UTC 2023


TypeC connector need disabling modeset for correctly doing hpd cycle
so do it before going for autodiscovery

Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
---
 lib/igt_chamelium.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c
index a235f3c87..95983ff25 100644
--- a/lib/igt_chamelium.c
+++ b/lib/igt_chamelium.c
@@ -2903,6 +2903,13 @@ struct chamelium *chamelium_init(int drm_fd, igt_display_t *display)
 	chamelium->drm_fd = dup(drm_fd);
 	IGT_INIT_LIST_HEAD(&chamelium->edids);
 
+	/*
+	 * Reset the chamelium and do a disabling modeset for
+	 * TypeC connector to come up nicely
+	 */
+	chamelium_reset(chamelium);
+	igt_modeset_disable_all_outputs(display);
+
 	if (!chamelium_read_port_mappings(chamelium, drm_fd))
 		goto error;
 
-- 
2.25.1



More information about the igt-dev mailing list