diff options
| author | Vishnuvardhan Prodduturi <vproddut@codeaurora.org> | 2017-09-19 16:48:38 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-10-08 09:07:51 -0700 |
| commit | 251d5d7b3e9fa246ce77c424b37ec3363b7d6c28 (patch) | |
| tree | b64a088b1884f8b92c80a3b91f9dbf92c3ea3906 | |
| parent | 6604cb543eeb8190109e30e6fdbe977466c42aba (diff) | |
msm: mdss: hdcp_1x: enable HDP irq only for DP client
HDCP driver provides a common interface for both Display port
and HDMI clients. As HPD IRQ enable API is valid only display
Port, make sure it is handled gracefully when called
from HDMI client so that invalid resource access can be avoided.
Change-Id: I42e07c6019300b37ea3426347fef571bbb6e278c
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_hdcp_1x.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdcp_1x.c b/drivers/video/fbdev/msm/mdss_hdcp_1x.c index 2dc9c8f96c5b..1f07487e617a 100644 --- a/drivers/video/fbdev/msm/mdss_hdcp_1x.c +++ b/drivers/video/fbdev/msm/mdss_hdcp_1x.c @@ -793,9 +793,13 @@ static void hdcp_1x_enable_sink_irq_hpd(struct hdcp_1x *hdcp) { int rc; u8 enable_hpd_irq = 0x1; - u16 version = *hdcp->init_data.version; + u16 version; const int major = 1, minor = 2; + if (hdcp->init_data.client_id == HDCP_CLIENT_HDMI) + return; + + version = *hdcp->init_data.version; pr_debug("version 0x%x\n", version); if (((version & 0xFF) < minor) || |
