msm: mdss: hdmi: unload HDCP 2.2 TZ app when resetting

Whenever we disconnect HDMI or are performing a
reauthentication of HDCP 2.2, unload the HDCP
2.2 TZ app so the state of the app is completely
reset.

Change-Id: I4696c373b027e38eaa95a345c65a61c1d7f1bd2d
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
This commit is contained in:
Casey Piper 2015-08-24 17:49:46 -07:00 committed by David Keitel
parent bed2a7d69d
commit 63e88a36a2

View file

@ -541,6 +541,10 @@ static void hdcp2p2_reset(struct hdcp2p2_ctrl *hdcp2p2_ctrl)
hdcp2p2_ctrl->hdcp_lib_handle);
hdcp2p2_ctrl->hdcp_txmtr_init = false;
}
if (hdcp2p2_ctrl->hdcp_library_init) {
hdcp_library_deinit(hdcp2p2_ctrl->hdcp_lib_handle);
hdcp2p2_ctrl->hdcp_library_init = false;
}
mutex_unlock(&hdcp2p2_ctrl->mutex);
}