summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunal Joshi <kunal1.joshi@intel.com>2024-04-22 11:04:53 +0530
committerBhanuprakash Modem <bhanuprakash.modem@intel.com>2024-04-23 14:19:54 +0530
commitd87e69e8dd7f9206a360f46788c0de37b427ed1e (patch)
treec5d61767925b19c133ef9405d558a938c1e36d05
parent8507d0f922c202cabdda9071550999512f46c331 (diff)
lib/igt_kms: remove unused igt_force_and_check_bigjoiner_status
remove unused igt_force_and_check_bigjoiner_status Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
-rw-r--r--lib/igt_kms.c28
-rw-r--r--lib/igt_kms.h1
2 files changed, 0 insertions, 29 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 2dcf330de..98d3fb79c 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -6337,34 +6337,6 @@ bool igt_has_force_joiner_debugfs(int drmfd, igt_output_t *output)
}
/**
- * Forces the enable/disable state of big joiner for a specific connector.
- *
- * @drmfd The file descriptor of the DRM device.
- * @connector_name The name of the connector.
- * @enable The desired state of big joiner (true for enable, false for disable).
- * Returns:
- * true if writing the debugfs was successful
- * and the state was set as requested, false otherwise.
- */
-bool igt_force_and_check_bigjoiner_status(int drmfd, char *connector_name, bool enable)
-{
- int debugfs_fd, ret;
- char buf[512];
-
- igt_assert_f(connector_name, "Connector name cannot be NULL\n");
- debugfs_fd = igt_debugfs_connector_dir(drmfd, connector_name, O_DIRECTORY);
- igt_assert_f(debugfs_fd >= 0, "Could not open debugfs for connector %s\n", connector_name);
- ret = igt_sysfs_write(debugfs_fd, "i915_bigjoiner_force_enable", enable ? "1" : "0", 1);
- igt_assert_f(ret > 0, "Could not write i915_bigjoiner_force_enable for connector %s\n", connector_name);
- ret = igt_debugfs_simple_read(debugfs_fd, "i915_bigjoiner_force_enable", buf, sizeof(buf));
- close(debugfs_fd);
- igt_assert_f(ret > 0, "Could not read i915_bigjoiner_force_enable for connector %s\n", connector_name);
-
- return enable ? strstr(buf, "Y") :
- strstr(buf, "N");
-}
-
-/**
* igt_check_bigjoiner_support:
* @display: a pointer to an #igt_display_t structure
*
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 0abf450c1..01604dac9 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -1216,7 +1216,6 @@ bool igt_bigjoiner_possible(drmModeModeInfo *mode, int max_dotclock);
bool bigjoiner_mode_found(int drm_fd, drmModeConnector *connector,
int max_dotclock, drmModeModeInfo *mode);
bool igt_has_force_joiner_debugfs(int drmfd, igt_output_t *output);
-bool igt_force_and_check_bigjoiner_status(int drmfd, char *connector_name, bool enable);
bool igt_check_bigjoiner_support(igt_display_t *display);
bool igt_parse_mode_string(const char *mode_string, drmModeModeInfo *mode);
bool intel_pipe_output_combo_valid(igt_display_t *display);