Skip to content

Commit 411c869

Browse files
hoganderjlahtine-intel
authored andcommitted
drm/i915/alpm: Make intel_alpm_enable_sink available for PSR
We want to enable sink ALPM from PSR code. Make intel_alpm_enable_sink available for PSR. v2: do not add kerneldoc comments Reviewed-by: Suraj Kandpal <[email protected]> Signed-off-by: Jouni Högander <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 2d27848) Signed-off-by: Joonas Lahtinen <[email protected]>
1 parent a92e390 commit 411c869

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/gpu/drm/i915/display/intel_alpm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ void intel_alpm_pre_plane_update(struct intel_atomic_state *state,
426426
}
427427
}
428428

429-
static void intel_alpm_enable_sink(struct intel_dp *intel_dp,
430-
const struct intel_crtc_state *crtc_state)
429+
void intel_alpm_enable_sink(struct intel_dp *intel_dp,
430+
const struct intel_crtc_state *crtc_state)
431431
{
432432
u8 val;
433433

drivers/gpu/drm/i915/display/intel_alpm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ void intel_alpm_lobf_compute_config(struct intel_dp *intel_dp,
2323
struct drm_connector_state *conn_state);
2424
void intel_alpm_configure(struct intel_dp *intel_dp,
2525
const struct intel_crtc_state *crtc_state);
26+
void intel_alpm_enable_sink(struct intel_dp *intel_dp,
27+
const struct intel_crtc_state *crtc_state);
2628
void intel_alpm_pre_plane_update(struct intel_atomic_state *state,
2729
struct intel_crtc *crtc);
2830
void intel_alpm_post_plane_update(struct intel_atomic_state *state,

0 commit comments

Comments
 (0)