> Subject: [PATCH v3 03/10] drm/i915/alpm: Enable debugfs for DP2.1 > > Enable AlPM debug info through lobf debug info.
* ALPM With that fixed Reviewed-by: Suraj Kandpal <[email protected]> > > v2: cosmetic change. [Suraj] > v3: Use common api instead of DISPLAY_VER check in multiple places. [Jani] > > Cc: Jouni Högander <[email protected]> > Signed-off-by: Animesh Manna <[email protected]> > --- > drivers/gpu/drm/i915/display/intel_alpm.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c > b/drivers/gpu/drm/i915/display/intel_alpm.c > index 14acd6717e59..3e271de5504b 100644 > --- a/drivers/gpu/drm/i915/display/intel_alpm.c > +++ b/drivers/gpu/drm/i915/display/intel_alpm.c > @@ -551,11 +551,9 @@ > DEFINE_SIMPLE_ATTRIBUTE(i915_edp_lobf_debug_fops, > > void intel_alpm_lobf_debugfs_add(struct intel_connector *connector) { > - struct intel_display *display = to_intel_display(connector); > struct dentry *root = connector->base.debugfs_entry; > > - if (DISPLAY_VER(display) < 20 || > - connector->base.connector_type != > DRM_MODE_CONNECTOR_eDP) > + if (!intel_alpm_source_supported(connector)) > return; > > debugfs_create_file("i915_edp_lobf_debug", 0644, root, > -- > 2.29.0
