]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/display: Add init_clock_gating.h stubs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Apr 2026 21:04:09 +0000 (00:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Apr 2026 16:24:22 +0000 (19:24 +0300)
Add static inline stubs for init_clock_gating.h functions
so that we don't need ifdefs in the actual code. We already
have one in intel_display_power.c, and now I need to bring
over intel_display_reset.c.

Cc: Jouni Högander <jouni.hogander@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260415210411.24750-6-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/xe/compat-i915-headers/intel_clock_gating.h

index 8a7afe2a94bc0db2db2f5dc849332a9e32edb787..80ecf373fb191900bb3946e91808146cb0a8b0b7 100644 (file)
@@ -1420,9 +1420,7 @@ static void hsw_disable_pc8(struct intel_display *display)
        intel_init_pch_refclk(display);
 
        /* Many display registers don't survive PC8+ */
-#ifdef I915 /* FIXME */
        intel_clock_gating_init(display->drm);
-#endif
 }
 
 static void intel_pch_reset_handshake(struct intel_display *display,
index ce986f0e8f38d7e805157ed77be9de80649bb173..552975a30ba239f579b364d04d4c56ddb0c96344 100644 (file)
@@ -3,4 +3,12 @@
  * Copyright © 2023 Intel Corporation
  */
 
-#include "../../i915/intel_clock_gating.h"
+#ifndef __INTEL_CLOCK_GATING_H__
+#define __INTEL_CLOCK_GATING_H__
+
+struct drm_device;
+
+static inline void intel_clock_gating_init(struct drm_device *drm) {}
+static inline void intel_clock_gating_hooks_init(struct drm_device *drm) {}
+
+#endif /* __INTEL_CLOCK_GATING_H__ */