drm/i915/debugfs: register LPSP capability on all platforms
authorJani Nikula <jani.nikula@intel.com>
Mon, 30 Aug 2021 12:53:42 +0000 (15:53 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 1 Oct 2021 10:45:18 +0000 (13:45 +0300)
The debugfs file shows it's not capable, don't duplicate the info.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/939453050a5a5175a12a08f16542c1b40bd726dc.1630327990.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c

index 68f4ba8c46e755acd13e806f19211dabd6aad112..455283b1a36b3f040dc3b0eb7b721a0555468428 100644 (file)
@@ -2485,14 +2485,11 @@ int intel_connector_debugfs_add(struct drm_connector *connector)
                                    connector, &i915_dsc_bpp_fops);
        }
 
-       /* Legacy panels doesn't lpsp on any platform */
-       if ((DISPLAY_VER(dev_priv) >= 9 || IS_HASWELL(dev_priv) ||
-            IS_BROADWELL(dev_priv)) &&
-            (connector->connector_type == DRM_MODE_CONNECTOR_DSI ||
-            connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
-            connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
-            connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
-            connector->connector_type == DRM_MODE_CONNECTOR_HDMIB))
+       if (connector->connector_type == DRM_MODE_CONNECTOR_DSI ||
+           connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
+           connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
+           connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
+           connector->connector_type == DRM_MODE_CONNECTOR_HDMIB)
                debugfs_create_file("i915_lpsp_capability", 0444, root,
                                    connector, &i915_lpsp_capability_fops);