drm/bridge: analogix_dp: disable PSR feature by default

Panel Self Refresh (PSR), originally introduced in eDP v1.3, is an
optional feature for Source and Sink devices.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I39c357d7caefc087241407a7d6b452e47e16eb9a
This commit is contained in:
Wyon Bi
2021-03-19 14:35:19 +08:00
committed by Tao Huang
parent 0d0f8a70ae
commit 9622f2d0f1
2 changed files with 5 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ Optional properties for dp-controller:
please refer to the SoC specific binding document:
* Documentation/devicetree/bindings/display/exynos/exynos_dp.txt
* Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt
-support-psr:
Enable Source's PSR capability.
[1]: Documentation/devicetree/bindings/media/video-interfaces.txt
-------------------------------------------------------------------------------

View File

@@ -163,6 +163,9 @@ static bool analogix_dp_detect_sink_psr(struct analogix_dp_device *dp)
unsigned char psr_version;
int ret;
if (!device_property_read_bool(dp->dev, "support-psr"))
return 0;
ret = drm_dp_dpcd_readb(&dp->aux, DP_PSR_SUPPORT, &psr_version);
if (ret != 1) {
dev_err(dp->dev, "failed to get PSR version, disable it\n");