summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-08-28 04:02:54 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-08-28 04:02:54 -0700
commitb407bf5fca9dfa75b8eb5d78455ed24a91ad1992 (patch)
treec1bc2a7758fa53aa68a20ac76d89692b1a75ffac
parente440301cac877425eb10116e1c95902353655955 (diff)
parentc6ee753a485ae0e378c70194183e1cafc1553bd8 (diff)
Merge "drm: msm: remove hdcp related error messages"
-rw-r--r--drivers/gpu/drm/msm/hdmi-staging/sde_hdmi_bridge.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/drivers/gpu/drm/msm/hdmi-staging/sde_hdmi_bridge.c b/drivers/gpu/drm/msm/hdmi-staging/sde_hdmi_bridge.c
index 120a6defc868..ecf93f2c07ac 100644
--- a/drivers/gpu/drm/msm/hdmi-staging/sde_hdmi_bridge.c
+++ b/drivers/gpu/drm/msm/hdmi-staging/sde_hdmi_bridge.c
@@ -591,21 +591,24 @@ static void sde_hdmi_update_hdcp_info(struct drm_connector *connector)
DEV_ERR("%s: invalid input\n", __func__);
return;
}
-
- /* check first if hdcp2p2 is supported */
- fd = display->hdcp_feat_data[SDE_HDCP_2P2];
- if (fd)
- ops = sde_hdmi_hdcp2p2_start(fd);
-
- /* If ops is true, sink supports hdcp */
- if (ops)
- display->sink_hdcp22_support = true;
-
- if (ops && ops->feature_supported)
- display->hdcp22_present = ops->feature_supported(fd);
- else
+ if (display->skip_ddc) {
+ display->sink_hdcp22_support = false;
display->hdcp22_present = false;
-
+ } else {
+ /* check first if hdcp2p2 is supported */
+ fd = display->hdcp_feat_data[SDE_HDCP_2P2];
+ if (fd)
+ ops = sde_hdmi_hdcp2p2_start(fd);
+
+ /* If ops is true, sink supports hdcp */
+ if (ops)
+ display->sink_hdcp22_support = true;
+
+ if (ops && ops->feature_supported)
+ display->hdcp22_present = ops->feature_supported(fd);
+ else
+ display->hdcp22_present = false;
+ }
/* if hdcp22_present is true, src supports hdcp 2p2 */
if (display->hdcp22_present)
display->src_hdcp22_support = true;