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

Commit 865fef26 authored by Ajay Singh Parmar's avatar Ajay Singh Parmar
Browse files

drm/msm/hdcp2.2: return proper error code on aux failures



In case of aux read/write failures during hdcp message exchange
between source and sink, return with error so that hdcp state
machine can take corrective action.

CRs-Fixed: 2292768
Change-Id: I5df7a8d77796784b48c09436004aa7ec93a51283
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent a949307d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -375,6 +375,7 @@ static int dp_hdcp2p2_aux_read_message(struct dp_hdcp2p2_ctrl *ctrl)
		if (bytes_read != read_size) {
			pr_err("fail: offset(0x%x), size(0x%x), rc(0x%x)\n",
					offset, read_size, bytes_read);
			rc = -EINVAL;
			break;
		}

@@ -401,6 +402,7 @@ static int dp_hdcp2p2_aux_write_message(struct dp_hdcp2p2_ctrl *ctrl,
		if (bytes_written != write_size) {
			pr_err("fail: offset(0x%x), size(0x%x), rc(0x%x)\n",
					offset, write_size, bytes_written);
			rc = -EINVAL;
			break;
		}