Commit 51279100 authored by Ramalingam C's avatar Ramalingam C

drm/i915/hdcp: conversion to struct drm_device based logging macros.

Converts remaining instances of the printk based logging macros in
i915/display/intel_hdcp.c with the struct drm_device based macros
manually.

This is continuation of commit 65833c46 ("drm/i915/hdcp: conversion
to struct drm_device based logging macros.")

v2:
  i915_dev_priv is used instead of drm_device for reusability [JaniN]
v3:
  Made it independent from the series.
  once instance of dev_priv naming is changed to i915 [Jani N]
Signed-off-by: default avatarRamalingam C <ramalingam.c@intel.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200212123007.6659-1-ramalingam.c@intel.com
parent a10510af
...@@ -43,6 +43,7 @@ static ...@@ -43,6 +43,7 @@ static
int intel_hdcp_read_valid_bksv(struct intel_digital_port *intel_dig_port, int intel_hdcp_read_valid_bksv(struct intel_digital_port *intel_dig_port,
const struct intel_hdcp_shim *shim, u8 *bksv) const struct intel_hdcp_shim *shim, u8 *bksv)
{ {
struct drm_i915_private *i915 = to_i915(intel_dig_port->base.base.dev);
int ret, i, tries = 2; int ret, i, tries = 2;
/* HDCP spec states that we must retry the bksv if it is invalid */ /* HDCP spec states that we must retry the bksv if it is invalid */
...@@ -54,7 +55,7 @@ int intel_hdcp_read_valid_bksv(struct intel_digital_port *intel_dig_port, ...@@ -54,7 +55,7 @@ int intel_hdcp_read_valid_bksv(struct intel_digital_port *intel_dig_port,
break; break;
} }
if (i == tries) { if (i == tries) {
DRM_DEBUG_KMS("Bksv is invalid\n"); drm_dbg_kms(&i915->drm, "Bksv is invalid\n");
return -ENODEV; return -ENODEV;
} }
...@@ -485,7 +486,7 @@ int intel_hdcp_validate_v_prime(struct intel_connector *connector, ...@@ -485,7 +486,7 @@ int intel_hdcp_validate_v_prime(struct intel_connector *connector,
return ret; return ret;
sha_idx += sizeof(sha_text); sha_idx += sizeof(sha_text);
} else { } else {
DRM_DEBUG_KMS("Invalid number of leftovers %d\n", drm_dbg_kms(&dev_priv->drm, "Invalid number of leftovers %d\n",
sha_leftovers); sha_leftovers);
return -EINVAL; return -EINVAL;
} }
...@@ -514,11 +515,11 @@ int intel_hdcp_validate_v_prime(struct intel_connector *connector, ...@@ -514,11 +515,11 @@ int intel_hdcp_validate_v_prime(struct intel_connector *connector,
rep_ctl | HDCP_SHA1_COMPLETE_HASH); rep_ctl | HDCP_SHA1_COMPLETE_HASH);
if (intel_de_wait_for_set(dev_priv, HDCP_REP_CTL, if (intel_de_wait_for_set(dev_priv, HDCP_REP_CTL,
HDCP_SHA1_COMPLETE, 1)) { HDCP_SHA1_COMPLETE, 1)) {
DRM_ERROR("Timed out waiting for SHA1 complete\n"); drm_err(&dev_priv->drm, "Timed out waiting for SHA1 complete\n");
return -ETIMEDOUT; return -ETIMEDOUT;
} }
if (!(intel_de_read(dev_priv, HDCP_REP_CTL) & HDCP_SHA1_V_MATCH)) { if (!(intel_de_read(dev_priv, HDCP_REP_CTL) & HDCP_SHA1_V_MATCH)) {
DRM_DEBUG_KMS("SHA-1 mismatch, HDCP failed\n"); drm_dbg_kms(&dev_priv->drm, "SHA-1 mismatch, HDCP failed\n");
return -ENXIO; return -ENXIO;
} }
...@@ -537,7 +538,8 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector) ...@@ -537,7 +538,8 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)
ret = intel_hdcp_poll_ksv_fifo(intel_dig_port, shim); ret = intel_hdcp_poll_ksv_fifo(intel_dig_port, shim);
if (ret) { if (ret) {
DRM_DEBUG_KMS("KSV list failed to become ready (%d)\n", ret); drm_dbg_kms(&dev_priv->drm,
"KSV list failed to become ready (%d)\n", ret);
return ret; return ret;
} }
...@@ -547,7 +549,7 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector) ...@@ -547,7 +549,7 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)
if (DRM_HDCP_MAX_DEVICE_EXCEEDED(bstatus[0]) || if (DRM_HDCP_MAX_DEVICE_EXCEEDED(bstatus[0]) ||
DRM_HDCP_MAX_CASCADE_EXCEEDED(bstatus[1])) { DRM_HDCP_MAX_CASCADE_EXCEEDED(bstatus[1])) {
DRM_DEBUG_KMS("Max Topology Limit Exceeded\n"); drm_dbg_kms(&dev_priv->drm, "Max Topology Limit Exceeded\n");
return -EPERM; return -EPERM;
} }
...@@ -560,13 +562,14 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector) ...@@ -560,13 +562,14 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)
*/ */
num_downstream = DRM_HDCP_NUM_DOWNSTREAM(bstatus[0]); num_downstream = DRM_HDCP_NUM_DOWNSTREAM(bstatus[0]);
if (num_downstream == 0) { if (num_downstream == 0) {
DRM_DEBUG_KMS("Repeater with zero downstream devices\n"); drm_dbg_kms(&dev_priv->drm,
"Repeater with zero downstream devices\n");
return -EINVAL; return -EINVAL;
} }
ksv_fifo = kcalloc(DRM_HDCP_KSV_LEN, num_downstream, GFP_KERNEL); ksv_fifo = kcalloc(DRM_HDCP_KSV_LEN, num_downstream, GFP_KERNEL);
if (!ksv_fifo) { if (!ksv_fifo) {
DRM_DEBUG_KMS("Out of mem: ksv_fifo\n"); drm_dbg_kms(&dev_priv->drm, "Out of mem: ksv_fifo\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -576,7 +579,7 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector) ...@@ -576,7 +579,7 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)
if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm, ksv_fifo, if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm, ksv_fifo,
num_downstream)) { num_downstream)) {
DRM_ERROR("Revoked Ksv(s) in ksv_fifo\n"); drm_err(&dev_priv->drm, "Revoked Ksv(s) in ksv_fifo\n");
ret = -EPERM; ret = -EPERM;
goto err; goto err;
} }
...@@ -594,11 +597,12 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector) ...@@ -594,11 +597,12 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)
} }
if (i == tries) { if (i == tries) {
DRM_DEBUG_KMS("V Prime validation failed.(%d)\n", ret); drm_dbg_kms(&dev_priv->drm,
"V Prime validation failed.(%d)\n", ret);
goto err; goto err;
} }
DRM_DEBUG_KMS("HDCP is enabled (%d downstream devices)\n", drm_dbg_kms(&dev_priv->drm, "HDCP is enabled (%d downstream devices)\n",
num_downstream); num_downstream);
ret = 0; ret = 0;
err: err:
...@@ -642,7 +646,8 @@ static int intel_hdcp_auth(struct intel_connector *connector) ...@@ -642,7 +646,8 @@ static int intel_hdcp_auth(struct intel_connector *connector)
if (ret) if (ret)
return ret; return ret;
if (!hdcp_capable) { if (!hdcp_capable) {
DRM_DEBUG_KMS("Panel is not HDCP capable\n"); drm_dbg_kms(&dev_priv->drm,
"Panel is not HDCP capable\n");
return -EINVAL; return -EINVAL;
} }
} }
...@@ -659,7 +664,7 @@ static int intel_hdcp_auth(struct intel_connector *connector) ...@@ -659,7 +664,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)
if (intel_de_wait_for_set(dev_priv, if (intel_de_wait_for_set(dev_priv,
HDCP_STATUS(dev_priv, cpu_transcoder, port), HDCP_STATUS(dev_priv, cpu_transcoder, port),
HDCP_STATUS_AN_READY, 1)) { HDCP_STATUS_AN_READY, 1)) {
DRM_ERROR("Timed out waiting for An\n"); drm_err(&dev_priv->drm, "Timed out waiting for An\n");
return -ETIMEDOUT; return -ETIMEDOUT;
} }
...@@ -680,7 +685,7 @@ static int intel_hdcp_auth(struct intel_connector *connector) ...@@ -680,7 +685,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)
return ret; return ret;
if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm, bksv.shim, 1)) { if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm, bksv.shim, 1)) {
DRM_ERROR("BKSV is revoked\n"); drm_err(&dev_priv->drm, "BKSV is revoked\n");
return -EPERM; return -EPERM;
} }
...@@ -706,7 +711,7 @@ static int intel_hdcp_auth(struct intel_connector *connector) ...@@ -706,7 +711,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)
/* Wait for R0 ready */ /* Wait for R0 ready */
if (wait_for(intel_de_read(dev_priv, HDCP_STATUS(dev_priv, cpu_transcoder, port)) & if (wait_for(intel_de_read(dev_priv, HDCP_STATUS(dev_priv, cpu_transcoder, port)) &
(HDCP_STATUS_R0_READY | HDCP_STATUS_ENC), 1)) { (HDCP_STATUS_R0_READY | HDCP_STATUS_ENC), 1)) {
DRM_ERROR("Timed out waiting for R0 ready\n"); drm_err(&dev_priv->drm, "Timed out waiting for R0 ready\n");
return -ETIMEDOUT; return -ETIMEDOUT;
} }
...@@ -743,8 +748,10 @@ static int intel_hdcp_auth(struct intel_connector *connector) ...@@ -743,8 +748,10 @@ static int intel_hdcp_auth(struct intel_connector *connector)
} }
if (i == tries) { if (i == tries) {
DRM_DEBUG_KMS("Timed out waiting for Ri prime match (%x)\n", drm_dbg_kms(&dev_priv->drm,
intel_de_read(dev_priv, HDCP_STATUS(dev_priv, cpu_transcoder, port))); "Timed out waiting for Ri prime match (%x)\n",
intel_de_read(dev_priv, HDCP_STATUS(dev_priv,
cpu_transcoder, port)));
return -ETIMEDOUT; return -ETIMEDOUT;
} }
...@@ -753,7 +760,7 @@ static int intel_hdcp_auth(struct intel_connector *connector) ...@@ -753,7 +760,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)
HDCP_STATUS(dev_priv, cpu_transcoder, port), HDCP_STATUS(dev_priv, cpu_transcoder, port),
HDCP_STATUS_ENC, HDCP_STATUS_ENC,
ENCRYPT_STATUS_CHANGE_TIMEOUT_MS)) { ENCRYPT_STATUS_CHANGE_TIMEOUT_MS)) {
DRM_ERROR("Timed out waiting for encryption\n"); drm_err(&dev_priv->drm, "Timed out waiting for encryption\n");
return -ETIMEDOUT; return -ETIMEDOUT;
} }
...@@ -765,7 +772,7 @@ static int intel_hdcp_auth(struct intel_connector *connector) ...@@ -765,7 +772,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)
if (repeater_present) if (repeater_present)
return intel_hdcp_auth_downstream(connector); return intel_hdcp_auth_downstream(connector);
DRM_DEBUG_KMS("HDCP is enabled (no repeater present)\n"); drm_dbg_kms(&dev_priv->drm, "HDCP is enabled (no repeater present)\n");
return 0; return 0;
} }
...@@ -1271,7 +1278,7 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector) ...@@ -1271,7 +1278,7 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector)
return ret; return ret;
if (msgs.send_cert.rx_caps[0] != HDCP_2_2_RX_CAPS_VERSION_VAL) { if (msgs.send_cert.rx_caps[0] != HDCP_2_2_RX_CAPS_VERSION_VAL) {
DRM_DEBUG_KMS("cert.rx_caps dont claim HDCP2.2\n"); drm_dbg_kms(&dev_priv->drm, "cert.rx_caps dont claim HDCP2.2\n");
return -EINVAL; return -EINVAL;
} }
...@@ -1280,7 +1287,7 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector) ...@@ -1280,7 +1287,7 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector)
if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm, if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm,
msgs.send_cert.cert_rx.receiver_id, msgs.send_cert.cert_rx.receiver_id,
1)) { 1)) {
DRM_ERROR("Receiver ID is revoked\n"); drm_err(&dev_priv->drm, "Receiver ID is revoked\n");
return -EPERM; return -EPERM;
} }
...@@ -1455,7 +1462,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector) ...@@ -1455,7 +1462,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)
if (HDCP_2_2_MAX_CASCADE_EXCEEDED(rx_info[1]) || if (HDCP_2_2_MAX_CASCADE_EXCEEDED(rx_info[1]) ||
HDCP_2_2_MAX_DEVS_EXCEEDED(rx_info[1])) { HDCP_2_2_MAX_DEVS_EXCEEDED(rx_info[1])) {
DRM_DEBUG_KMS("Topology Max Size Exceeded\n"); drm_dbg_kms(&dev_priv->drm, "Topology Max Size Exceeded\n");
return -EINVAL; return -EINVAL;
} }
...@@ -1465,7 +1472,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector) ...@@ -1465,7 +1472,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)
if (seq_num_v < hdcp->seq_num_v) { if (seq_num_v < hdcp->seq_num_v) {
/* Roll over of the seq_num_v from repeater. Reauthenticate. */ /* Roll over of the seq_num_v from repeater. Reauthenticate. */
DRM_DEBUG_KMS("Seq_num_v roll over.\n"); drm_dbg_kms(&dev_priv->drm, "Seq_num_v roll over.\n");
return -EINVAL; return -EINVAL;
} }
...@@ -1474,7 +1481,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector) ...@@ -1474,7 +1481,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)
if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm, if (drm_hdcp_check_ksvs_revoked(&dev_priv->drm,
msgs.recvid_list.receiver_ids, msgs.recvid_list.receiver_ids,
device_cnt)) { device_cnt)) {
DRM_ERROR("Revoked receiver ID(s) is in list\n"); drm_err(&dev_priv->drm, "Revoked receiver ID(s) is in list\n");
return -EPERM; return -EPERM;
} }
...@@ -1507,25 +1514,27 @@ static int hdcp2_authenticate_repeater(struct intel_connector *connector) ...@@ -1507,25 +1514,27 @@ static int hdcp2_authenticate_repeater(struct intel_connector *connector)
static int hdcp2_authenticate_sink(struct intel_connector *connector) static int hdcp2_authenticate_sink(struct intel_connector *connector)
{ {
struct intel_digital_port *intel_dig_port = intel_attached_dig_port(connector); struct intel_digital_port *intel_dig_port = intel_attached_dig_port(connector);
struct drm_i915_private *i915 = to_i915(connector->base.dev);
struct intel_hdcp *hdcp = &connector->hdcp; struct intel_hdcp *hdcp = &connector->hdcp;
const struct intel_hdcp_shim *shim = hdcp->shim; const struct intel_hdcp_shim *shim = hdcp->shim;
int ret; int ret;
ret = hdcp2_authentication_key_exchange(connector); ret = hdcp2_authentication_key_exchange(connector);
if (ret < 0) { if (ret < 0) {
DRM_DEBUG_KMS("AKE Failed. Err : %d\n", ret); drm_dbg_kms(&i915->drm, "AKE Failed. Err : %d\n", ret);
return ret; return ret;
} }
ret = hdcp2_locality_check(connector); ret = hdcp2_locality_check(connector);
if (ret < 0) { if (ret < 0) {
DRM_DEBUG_KMS("Locality Check failed. Err : %d\n", ret); drm_dbg_kms(&i915->drm,
"Locality Check failed. Err : %d\n", ret);
return ret; return ret;
} }
ret = hdcp2_session_key_exchange(connector); ret = hdcp2_session_key_exchange(connector);
if (ret < 0) { if (ret < 0) {
DRM_DEBUG_KMS("SKE Failed. Err : %d\n", ret); drm_dbg_kms(&i915->drm, "SKE Failed. Err : %d\n", ret);
return ret; return ret;
} }
...@@ -1540,7 +1549,8 @@ static int hdcp2_authenticate_sink(struct intel_connector *connector) ...@@ -1540,7 +1549,8 @@ static int hdcp2_authenticate_sink(struct intel_connector *connector)
if (hdcp->is_repeater) { if (hdcp->is_repeater) {
ret = hdcp2_authenticate_repeater(connector); ret = hdcp2_authenticate_repeater(connector);
if (ret < 0) { if (ret < 0) {
DRM_DEBUG_KMS("Repeater Auth Failed. Err: %d\n", ret); drm_dbg_kms(&i915->drm,
"Repeater Auth Failed. Err: %d\n", ret);
return ret; return ret;
} }
} }
...@@ -1630,6 +1640,7 @@ static int hdcp2_disable_encryption(struct intel_connector *connector) ...@@ -1630,6 +1640,7 @@ static int hdcp2_disable_encryption(struct intel_connector *connector)
static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector) static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)
{ {
struct drm_i915_private *i915 = to_i915(connector->base.dev);
int ret, i, tries = 3; int ret, i, tries = 3;
for (i = 0; i < tries; i++) { for (i = 0; i < tries; i++) {
...@@ -1638,10 +1649,10 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector) ...@@ -1638,10 +1649,10 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)
break; break;
/* Clearing the mei hdcp session */ /* Clearing the mei hdcp session */
DRM_DEBUG_KMS("HDCP2.2 Auth %d of %d Failed.(%d)\n", drm_dbg_kms(&i915->drm, "HDCP2.2 Auth %d of %d Failed.(%d)\n",
i + 1, tries, ret); i + 1, tries, ret);
if (hdcp2_deauthenticate_port(connector) < 0) if (hdcp2_deauthenticate_port(connector) < 0)
DRM_DEBUG_KMS("Port deauth failed.\n"); drm_dbg_kms(&i915->drm, "Port deauth failed.\n");
} }
if (i != tries) { if (i != tries) {
...@@ -1652,9 +1663,10 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector) ...@@ -1652,9 +1663,10 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)
msleep(HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN); msleep(HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN);
ret = hdcp2_enable_encryption(connector); ret = hdcp2_enable_encryption(connector);
if (ret < 0) { if (ret < 0) {
DRM_DEBUG_KMS("Encryption Enable Failed.(%d)\n", ret); drm_dbg_kms(&i915->drm,
"Encryption Enable Failed.(%d)\n", ret);
if (hdcp2_deauthenticate_port(connector) < 0) if (hdcp2_deauthenticate_port(connector) < 0)
DRM_DEBUG_KMS("Port deauth failed.\n"); drm_dbg_kms(&i915->drm, "Port deauth failed.\n");
} }
} }
...@@ -1663,21 +1675,22 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector) ...@@ -1663,21 +1675,22 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)
static int _intel_hdcp2_enable(struct intel_connector *connector) static int _intel_hdcp2_enable(struct intel_connector *connector)
{ {
struct drm_i915_private *i915 = to_i915(connector->base.dev);
struct intel_hdcp *hdcp = &connector->hdcp; struct intel_hdcp *hdcp = &connector->hdcp;
int ret; int ret;
DRM_DEBUG_KMS("[%s:%d] HDCP2.2 is being enabled. Type: %d\n", drm_dbg_kms(&i915->drm, "[%s:%d] HDCP2.2 is being enabled. Type: %d\n",
connector->base.name, connector->base.base.id, connector->base.name, connector->base.base.id,
hdcp->content_type); hdcp->content_type);
ret = hdcp2_authenticate_and_encrypt(connector); ret = hdcp2_authenticate_and_encrypt(connector);
if (ret) { if (ret) {
DRM_DEBUG_KMS("HDCP2 Type%d Enabling Failed. (%d)\n", drm_dbg_kms(&i915->drm, "HDCP2 Type%d Enabling Failed. (%d)\n",
hdcp->content_type, ret); hdcp->content_type, ret);
return ret; return ret;
} }
DRM_DEBUG_KMS("[%s:%d] HDCP2.2 is enabled. Type %d\n", drm_dbg_kms(&i915->drm, "[%s:%d] HDCP2.2 is enabled. Type %d\n",
connector->base.name, connector->base.base.id, connector->base.name, connector->base.base.id,
hdcp->content_type); hdcp->content_type);
...@@ -1687,15 +1700,16 @@ static int _intel_hdcp2_enable(struct intel_connector *connector) ...@@ -1687,15 +1700,16 @@ static int _intel_hdcp2_enable(struct intel_connector *connector)
static int _intel_hdcp2_disable(struct intel_connector *connector) static int _intel_hdcp2_disable(struct intel_connector *connector)
{ {
struct drm_i915_private *i915 = to_i915(connector->base.dev);
int ret; int ret;
DRM_DEBUG_KMS("[%s:%d] HDCP2.2 is being Disabled\n", drm_dbg_kms(&i915->drm, "[%s:%d] HDCP2.2 is being Disabled\n",
connector->base.name, connector->base.base.id); connector->base.name, connector->base.base.id);
ret = hdcp2_disable_encryption(connector); ret = hdcp2_disable_encryption(connector);
if (hdcp2_deauthenticate_port(connector) < 0) if (hdcp2_deauthenticate_port(connector) < 0)
DRM_DEBUG_KMS("Port deauth failed.\n"); drm_dbg_kms(&i915->drm, "Port deauth failed.\n");
connector->hdcp.hdcp2_encrypted = false; connector->hdcp.hdcp2_encrypted = false;
...@@ -1938,12 +1952,13 @@ void intel_hdcp_component_init(struct drm_i915_private *dev_priv) ...@@ -1938,12 +1952,13 @@ void intel_hdcp_component_init(struct drm_i915_private *dev_priv)
static void intel_hdcp2_init(struct intel_connector *connector, static void intel_hdcp2_init(struct intel_connector *connector,
const struct intel_hdcp_shim *shim) const struct intel_hdcp_shim *shim)
{ {
struct drm_i915_private *i915 = to_i915(connector->base.dev);
struct intel_hdcp *hdcp = &connector->hdcp; struct intel_hdcp *hdcp = &connector->hdcp;
int ret; int ret;
ret = initialize_hdcp_port_data(connector, shim); ret = initialize_hdcp_port_data(connector, shim);
if (ret) { if (ret) {
DRM_DEBUG_KMS("Mei hdcp data init failed\n"); drm_dbg_kms(&i915->drm, "Mei hdcp data init failed\n");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment