[PATCH i-g-t v3] tests/intel/kms_psr2_sf: Restrict ET validation to eDP only

Naladala Ramanaidu <[email protected]>
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>
The current driver supports Early Transport (ET) only for eDP
Panel Replay. Running this check on other connector types can
lead to invalid results. Restrict the validation to eDP to keep
the test aligned with current behavior and avoid unnecessary
failures.

v2: Update code comment.
v3: Update code comment.

Signed-off-by: Naladala Ramanaidu <[email protected]>
Reviewed-by: Mohammed Thasleem <[email protected]>
---
 tests/intel/kms_psr2_sf.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/intel/kms_psr2_sf.c b/tests/intel/kms_psr2_sf.c
index 1cc57ad35..eec916c25 100644
--- a/tests/intel/kms_psr2_sf.c
+++ b/tests/intel/kms_psr2_sf.c
@@ -238,6 +238,13 @@ typedef struct {
 
 static bool is_et_check_needed(data_t *data)
 {
+	/*
+	 * ET is supported only on eDP.
+	 */
+	if (data->output->config.connector->connector_type !=
+	    DRM_MODE_CONNECTOR_eDP)
+		return false;
+
 	switch (data->psr_mode) {
 	case PR_MODE_SEL_FETCH:
 	case PR_MODE_SEL_FETCH_ET:
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.