Skip to content

Commit

Permalink
drm/i915/display: Set source_support even if panel do not support PSR
Browse files Browse the repository at this point in the history
This will set the right value of source_support when the port
encoder/port supports PSR but sink don't.

This change will also be needed in future for panel replay as psr
struct needs to be initialized even if disconnected or current sink
don't support PSR.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209181439.215104-4-jose.souza@intel.com
  • Loading branch information
José Roberto de Souza committed Feb 22, 2021
1 parent 3816139 commit 1b6872f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/i915/display/intel_psr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1839,9 +1839,6 @@ void intel_psr_init(struct intel_dp *intel_dp)
if (!HAS_PSR(dev_priv))
return;

if (!intel_dp->psr.sink_support)
return;

/*
* HSW spec explicitly says PSR is tied to port A.
* BDW+ platforms have a instance of PSR registers per transcoder but
Expand Down

0 comments on commit 1b6872f

Please sign in to comment.