]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Call primary encoder's .get_config() from MST .get_config()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 24 Feb 2021 14:42:09 +0000 (16:42 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 8 Mar 2021 16:35:51 +0000 (18:35 +0200)
Stop assuming intel_ddi_get_config() is all we need from the primary
encoder, and instead call it via the .get_config() vfunc. This
will allow customized .get_config() for the primary, which I plan
to use to handle the differences in the clock readout between various
platforms.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210224144214.24803-2-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/display/intel_dp_mst.c

index 8e316146b6d161b893e05267f3718232be538480..906860ad8eb8af39e9e1bb68313ba8f80e11f8cd 100644 (file)
@@ -591,7 +591,7 @@ static void intel_dp_mst_enc_get_config(struct intel_encoder *encoder,
        struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
        struct intel_digital_port *dig_port = intel_mst->primary;
 
-       intel_ddi_get_config(&dig_port->base, pipe_config);
+       dig_port->base.get_config(&dig_port->base, pipe_config);
 }
 
 static bool intel_dp_mst_initial_fastset_check(struct intel_encoder *encoder,