[PATCH i-g-t 6/9] lib/igt_kms: add exit handler function to clear force debugfs state
Kunal Joshi
kunal1.joshi at intel.com
Wed Apr 10 06:44:23 UTC 2024
add exit handler which will be initialized on
kmstest_force_connector_debugfs
Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
Cc: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Cc: Karthik B S <karthik.b.s at intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
---
lib/igt_kms.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 18605531b..80070d935 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1454,6 +1454,11 @@ static void reset_connectors_at_exit(int sig)
igt_reset_connectors();
}
+static void reset_connectors_debugfs_at_exit(int sig)
+{
+ igt_reset_connectors_debugfs();
+}
+
static char *kmstest_connector_dirname(int idx,
uint32_t connector_type,
uint32_t connector_type_id,
--
2.34.1
More information about the igt-dev
mailing list