Commit 02a342e3 authored by Stylon Wang's avatar Stylon Wang Committed by Alex Deucher

drm/amd/display: Enable "trigger_hotplug" debugfs on all outputs

[Why]
Per-connector debugfs entry "trigger_hotplug" is available on DP/eDP only.
New IGT tests need this entry to test other outputs.

[How]
Enable this debugfs entry on all types of connectors
Signed-off-by: default avatarStylon Wang <stylon.wang@amd.com>
Reviewed-by: default avatarMikita Lipski <Mikita.Lipski@amd.com>
Acked-by: default avatarAnson Jacob <Anson.Jacob@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a38b873f
...@@ -1063,7 +1063,7 @@ static int dp_dsc_fec_support_show(struct seq_file *m, void *data) ...@@ -1063,7 +1063,7 @@ static int dp_dsc_fec_support_show(struct seq_file *m, void *data)
* echo 0 > /sys/kernel/debug/dri/0/DP-X/trigger_hotplug * echo 0 > /sys/kernel/debug/dri/0/DP-X/trigger_hotplug
* *
*/ */
static ssize_t dp_trigger_hotplug(struct file *f, const char __user *buf, static ssize_t trigger_hotplug(struct file *f, const char __user *buf,
size_t size, loff_t *pos) size_t size, loff_t *pos)
{ {
struct amdgpu_dm_connector *aconnector = file_inode(f)->i_private; struct amdgpu_dm_connector *aconnector = file_inode(f)->i_private;
...@@ -2214,9 +2214,9 @@ static const struct file_operations dp_dsc_slice_bpg_offset_debugfs_fops = { ...@@ -2214,9 +2214,9 @@ static const struct file_operations dp_dsc_slice_bpg_offset_debugfs_fops = {
.llseek = default_llseek .llseek = default_llseek
}; };
static const struct file_operations dp_trigger_hotplug_debugfs_fops = { static const struct file_operations trigger_hotplug_debugfs_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.write = dp_trigger_hotplug, .write = trigger_hotplug,
.llseek = default_llseek .llseek = default_llseek
}; };
...@@ -2270,7 +2270,6 @@ static const struct { ...@@ -2270,7 +2270,6 @@ static const struct {
const struct file_operations *fops; const struct file_operations *fops;
} dp_debugfs_entries[] = { } dp_debugfs_entries[] = {
{"link_settings", &dp_link_settings_debugfs_fops}, {"link_settings", &dp_link_settings_debugfs_fops},
{"trigger_hotplug", &dp_trigger_hotplug_debugfs_fops},
{"phy_settings", &dp_phy_settings_debugfs_fop}, {"phy_settings", &dp_phy_settings_debugfs_fop},
{"test_pattern", &dp_phy_test_pattern_fops}, {"test_pattern", &dp_phy_test_pattern_fops},
#ifdef CONFIG_DRM_AMD_DC_HDCP #ifdef CONFIG_DRM_AMD_DC_HDCP
...@@ -2367,6 +2366,9 @@ void connector_debugfs_init(struct amdgpu_dm_connector *connector) ...@@ -2367,6 +2366,9 @@ void connector_debugfs_init(struct amdgpu_dm_connector *connector)
debugfs_create_file("output_bpc", 0644, dir, connector, debugfs_create_file("output_bpc", 0644, dir, connector,
&output_bpc_fops); &output_bpc_fops);
debugfs_create_file("trigger_hotplug", 0644, dir, connector,
&trigger_hotplug_debugfs_fops);
connector->debugfs_dpcd_address = 0; connector->debugfs_dpcd_address = 0;
connector->debugfs_dpcd_size = 0; connector->debugfs_dpcd_size = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment