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:
@@ -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
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user