Fix the handling of HDCP repeaters to mark part II
of the authentication as failure if they do not have
any devices connected to them.
Change-Id: I6b21ed2ce9a280f7e200404b05d111508a6d3dd8
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
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);