OSDN Git Service

drm/i915/display: Replace intel_psr_enabled() calls by intel_crtc_state check
authorJosé Roberto de Souza <jose.souza@intel.com>
Sun, 18 Apr 2021 00:21:23 +0000 (17:21 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 11 May 2021 19:29:01 +0000 (12:29 -0700)
commitd54e017e62d806a2b58f63aabd6a428478617913
treea6d49681a9377c65b7e6843e25ca5bcb6cefaaa5
parent78b772e1a01f699fbbcaa59d7a298aabe66a9b21
drm/i915/display: Replace intel_psr_enabled() calls by intel_crtc_state check

All of this places don't need to intel_psr_enabled() that will lock
psr mutex, check state and unlock.

Instead it can directly check PSR state in intel_crtc_state, the only
place that was not possible was intel_read_dp_vsc_sdp() but since
"drm/i915/display: Fill PSR state during hardware configuration read
out" it is possible.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210418002126.87882-2-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_dp.c