Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c534091b authored by Vishnuvardhan Prodduturi's avatar Vishnuvardhan Prodduturi Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVishnuvardhan Prodduturi <vproddut@codeaurora.org>
parent c16457d1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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) ||