Thread (26 messages) 26 messages, 6 authors, 2021-06-10

[igt-dev] [PATCH i-g-t 09/11] tests/kms_dp_dsc: Read the debugfs only once

From: <hidden>
Date: 2021-06-09 12:28:32
Subsystem: the rest · Maintainer: Linus Torvalds

From: Patnana Venkata Sai <redacted>

Instead of doing a debugfs_simple_read and then
a debugfs_read(), lets read the debugfs node just once.
We anyway get the suitable return from the following
strstr operation

Signed-off-by: Patnana Venkata Sai <redacted>
Cc: Karthik B S <redacted>
Cc: Vandita Kulkarni <redacted>
Cc: Navare Manasi D <redacted>
---
 tests/kms_dp_dsc.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/tests/kms_dp_dsc.c b/tests/kms_dp_dsc.c
index 2446fd82bb..8bd2102447 100644
--- a/tests/kms_dp_dsc.c
+++ b/tests/kms_dp_dsc.c
@@ -80,8 +80,6 @@ static bool is_dp_dsc_supported(data_t *data)
 
 	strcpy(file_name, data->conn_name);
 	strcat(file_name, "/i915_dsc_fec_support");
-	igt_require(igt_debugfs_simple_read(data->debugfs_fd, file_name, buf,
-					    sizeof(buf)) > 0);
 	igt_debugfs_read(data->drm_fd, file_name, buf);
 
 	return strstr(buf, "DSC_Sink_Support: yes");
-- 
2.25.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help