drm/i915/display: Make intel_dp_aux_fw_sync_len available for PSR code
authorJouni Högander <jouni.hogander@intel.com>
Wed, 13 Mar 2024 13:32:18 +0000 (15:32 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 14 Mar 2024 14:25:25 +0000 (16:25 +0200)
ALPM AUX-Wake fast wake sync pulse count is needed by PSR to calculate IO
wake and fast wake lines. Convert intel_dp_aux_fw_sync_len as non-static
to make it available for PSR code.

v2: use int instead of u8

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240313133221.868391-2-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_dp_aux.c
drivers/gpu/drm/i915/display/intel_dp_aux.h

index 4f4a0e3b31140d97822493c4533ccfbf5500534f..7e69be100d90800d82e9666ddcc05ce927ab32b7 100644 (file)
@@ -143,7 +143,7 @@ static int intel_dp_aux_sync_len(void)
        return precharge + preamble;
 }
 
-static int intel_dp_aux_fw_sync_len(void)
+int intel_dp_aux_fw_sync_len(void)
 {
        int precharge = 10; /* 10-16 */
        int preamble = 8;
index 8447f3e601fe4090de1c137e103ca3e04b890fcd..76d1f2ed7c2f49e21bab5acc3ce00e2743db1cb0 100644 (file)
@@ -20,5 +20,6 @@ enum aux_ch intel_dp_aux_ch(struct intel_encoder *encoder);
 
 void intel_dp_aux_irq_handler(struct drm_i915_private *i915);
 u32 intel_dp_aux_pack(const u8 *src, int src_bytes);
+int intel_dp_aux_fw_sync_len(void);
 
 #endif /* __INTEL_DP_AUX_H__ */