]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Add connector dbgfs for all connectors
authorAnshuman Gupta <anshuman.gupta@intel.com>
Wed, 15 Apr 2020 17:05:54 +0000 (22:35 +0530)
committerUma Shankar <uma.shankar@intel.com>
Fri, 17 Apr 2020 07:42:10 +0000 (13:12 +0530)
Add connector debugfs attributes for each intel
connector which is getting register.

v2:
- adding connector debugfs for each connector in
  intel_connector_register() to fix CI failure for legacy connectors.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415170555.15531-4-anshuman.gupta@intel.com
drivers/gpu/drm/i915/display/intel_connector.c
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_hdmi.c

index 98ec2ea86c7c53531abe51f2f76b67d656caf029..406e96785c763760cf422f9cbcb72cf5c8a721e2 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "i915_drv.h"
 #include "intel_connector.h"
+#include "intel_display_debugfs.h"
 #include "intel_display_types.h"
 #include "intel_hdcp.h"
 
@@ -123,6 +124,8 @@ int intel_connector_register(struct drm_connector *connector)
                goto err_backlight;
        }
 
+       intel_connector_debugfs_add(connector);
+
        return 0;
 
 err_backlight:
index d4fcc958386983b8a2dc684830a5a93041aa60fe..48397b2c08cf736e162971f2dca3eb3f26b09ece 100644 (file)
@@ -48,7 +48,6 @@
 #include "intel_audio.h"
 #include "intel_connector.h"
 #include "intel_ddi.h"
-#include "intel_display_debugfs.h"
 #include "intel_display_types.h"
 #include "intel_dp.h"
 #include "intel_dp_link_training.h"
@@ -6451,8 +6450,6 @@ intel_dp_connector_register(struct drm_connector *connector)
        if (ret)
                return ret;
 
-       intel_connector_debugfs_add(connector);
-
        drm_dbg_kms(&i915->drm, "registering %s bus for %s\n",
                    intel_dp->aux.name, connector->kdev->kobj.name);
 
index 6b1bc955124cb3af9fa73b04d27cb9be80d5082b..9c058f7aa185b72fd5a29951e761579ee4d1125e 100644 (file)
@@ -44,7 +44,6 @@
 #include "intel_audio.h"
 #include "intel_connector.h"
 #include "intel_ddi.h"
-#include "intel_display_debugfs.h"
 #include "intel_display_types.h"
 #include "intel_dp.h"
 #include "intel_dpio_phy.h"
@@ -2878,8 +2877,6 @@ intel_hdmi_connector_register(struct drm_connector *connector)
        if (ret)
                return ret;
 
-       intel_connector_debugfs_add(connector);
-
        intel_hdmi_create_i2c_symlink(connector);
 
        return ret;