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

Commit 992294f8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm: fix zero device count HDCP repeater test cases"

parents 0eb7aa31 f2a1240a
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -1201,9 +1201,16 @@ static int sde_hdcp_1x_authentication_part2(struct sde_hdcp_1x *hdcp)
		if (rc)
			goto error;

		/* do not proceed further if no device connected */
		if (!hdcp->current_tp.dev_count)
		/*
		 * Do not proceed further if no device connected
		 * If no downstream devices are attached to the repeater
		 * then part II fails.
		 */

		if (!hdcp->current_tp.dev_count) {
			rc = -EINVAL;
			goto error;
		}

		rc = sde_hdcp_1x_write_ksv_fifo(hdcp);
	} while (--v_retry && rc);