Commit 22d9a255 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Setup final panel drrs_type already during init

Now that we track the VBT drrs type per-panel we can move the
has_drrs_modes() check to the panel init rather than doing it
for every intel_panel_drrs_type() call.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221003113249.16213-7-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent d1af925b
...@@ -165,9 +165,6 @@ static bool has_drrs_modes(struct intel_connector *connector) ...@@ -165,9 +165,6 @@ static bool has_drrs_modes(struct intel_connector *connector)
enum drrs_type intel_panel_drrs_type(struct intel_connector *connector) enum drrs_type intel_panel_drrs_type(struct intel_connector *connector)
{ {
if (!has_drrs_modes(connector))
return DRRS_TYPE_NONE;
return connector->panel.vbt.drrs_type; return connector->panel.vbt.drrs_type;
} }
...@@ -668,6 +665,9 @@ int intel_panel_init(struct intel_connector *connector) ...@@ -668,6 +665,9 @@ int intel_panel_init(struct intel_connector *connector)
intel_backlight_init_funcs(panel); intel_backlight_init_funcs(panel);
if (!has_drrs_modes(connector))
connector->panel.vbt.drrs_type = DRRS_TYPE_NONE;
drm_dbg_kms(connector->base.dev, drm_dbg_kms(connector->base.dev,
"[CONNECTOR:%d:%s] DRRS type: %s\n", "[CONNECTOR:%d:%s] DRRS type: %s\n",
connector->base.base.id, connector->base.name, connector->base.base.id, connector->base.name,
......
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