mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
|
please refer to the SoC specific binding document:
|
||||||
* Documentation/devicetree/bindings/display/exynos/exynos_dp.txt
|
* Documentation/devicetree/bindings/display/exynos/exynos_dp.txt
|
||||||
* Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.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
|
[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;
|
unsigned char psr_version;
|
||||||
int ret;
|
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);
|
ret = drm_dp_dpcd_readb(&dp->aux, DP_PSR_SUPPORT, &psr_version);
|
||||||
if (ret != 1) {
|
if (ret != 1) {
|
||||||
dev_err(dp->dev, "failed to get PSR version, disable it\n");
|
dev_err(dp->dev, "failed to get PSR version, disable it\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user