drm/bridge: analogix_dp: Add analogix_dp_psr_supported
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 23 Sep 2016 14:06:39 +0000 (16:06 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Oct 2016 06:23:16 +0000 (08:23 +0200)
So users know whether PSR should be enabled or not.

Cc: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1474639600-30090-1-git-send-email-tomeu.vizoso@collabora.com
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
include/drm/bridge/analogix_dp.h

index 0f2e423106942456655e171f6356b0094ad0634c..001b075e171b47d5ac5b39418f34d154e6e1fe3a 100644 (file)
@@ -98,6 +98,14 @@ static int analogix_dp_detect_hpd(struct analogix_dp_device *dp)
        return 0;
 }
 
+int analogix_dp_psr_supported(struct device *dev)
+{
+       struct analogix_dp_device *dp = dev_get_drvdata(dev);
+
+       return dp->psr_support;
+}
+EXPORT_SYMBOL_GPL(analogix_dp_psr_supported);
+
 int analogix_dp_enable_psr(struct device *dev)
 {
        struct analogix_dp_device *dp = dev_get_drvdata(dev);
index 9cd8838e1ec36254fe0e53459ba0b9321d2ec801..f6f0c062205c39862958347ef76d52af9a0f7dba 100644 (file)
@@ -38,6 +38,7 @@ struct analogix_dp_plat_data {
                         struct drm_connector *);
 };
 
+int analogix_dp_psr_supported(struct device *dev);
 int analogix_dp_enable_psr(struct device *dev);
 int analogix_dp_disable_psr(struct device *dev);