[PATCH 01/10] drm/i915/display: move params copy at probe earlier
Jani Nikula
jani.nikula at intel.com
Wed May 22 17:33:38 UTC 2024
Copy the parameters earlier to make subsequent changes easier.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/display/intel_display_device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c
index cf093bc0cb28..9edadc7270f6 100644
--- a/drivers/gpu/drm/i915/display/intel_display_device.c
+++ b/drivers/gpu/drm/i915/display/intel_display_device.c
@@ -936,6 +936,8 @@ void intel_display_device_probe(struct drm_i915_private *i915)
/* Add drm device backpointer as early as possible. */
i915->display.drm = &i915->drm;
+ intel_display_params_copy(&i915->display.params);
+
if (HAS_GMD_ID(i915))
info = probe_gmdid_display(i915, &ver, &rel, &step);
else
@@ -952,8 +954,6 @@ void intel_display_device_probe(struct drm_i915_private *i915)
DISPLAY_RUNTIME_INFO(i915)->ip.rel = rel;
DISPLAY_RUNTIME_INFO(i915)->ip.step = step;
}
-
- intel_display_params_copy(&i915->display.params);
}
void intel_display_device_remove(struct drm_i915_private *i915)
--
2.39.2
More information about the Intel-gfx
mailing list