mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 03:46:44 +07:00
video: exynos_dp: Change aux transaction failures
This patch adds the function name to aux transaction failure messages so we can tell which transaction is failing. It also changes the level of Aux Transaction fail messages from error to debug. We retry the transactions a few times and will report errors if warranted outside of this function. Signed-off-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Bernie Thompson <bhthompson@chromium.org> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:
parent
11bce6459f
commit
8fefbb7519
@ -479,7 +479,8 @@ int exynos_dp_write_byte_to_dpcd(struct exynos_dp_device *dp,
|
|||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
dev_err(dp->dev, "Aux Transaction fail!\n");
|
dev_dbg(dp->dev, "%s: Aux Transaction fail!\n",
|
||||||
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
@ -519,7 +520,8 @@ int exynos_dp_read_byte_from_dpcd(struct exynos_dp_device *dp,
|
|||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
dev_err(dp->dev, "Aux Transaction fail!\n");
|
dev_dbg(dp->dev, "%s: Aux Transaction fail!\n",
|
||||||
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read data buffer */
|
/* Read data buffer */
|
||||||
@ -583,7 +585,8 @@ int exynos_dp_write_bytes_to_dpcd(struct exynos_dp_device *dp,
|
|||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
dev_err(dp->dev, "Aux Transaction fail!\n");
|
dev_dbg(dp->dev, "%s: Aux Transaction fail!\n",
|
||||||
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
start_offset += cur_data_count;
|
start_offset += cur_data_count;
|
||||||
@ -640,7 +643,8 @@ int exynos_dp_read_bytes_from_dpcd(struct exynos_dp_device *dp,
|
|||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
dev_err(dp->dev, "Aux Transaction fail!\n");
|
dev_dbg(dp->dev, "%s: Aux Transaction fail!\n",
|
||||||
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (cur_data_idx = 0; cur_data_idx < cur_data_count;
|
for (cur_data_idx = 0; cur_data_idx < cur_data_count;
|
||||||
@ -685,7 +689,7 @@ int exynos_dp_select_i2c_device(struct exynos_dp_device *dp,
|
|||||||
/* Start AUX transaction */
|
/* Start AUX transaction */
|
||||||
retval = exynos_dp_start_aux_transaction(dp);
|
retval = exynos_dp_start_aux_transaction(dp);
|
||||||
if (retval != 0)
|
if (retval != 0)
|
||||||
dev_err(dp->dev, "Aux Transaction fail!\n");
|
dev_dbg(dp->dev, "%s: Aux Transaction fail!\n", __func__);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
@ -725,7 +729,8 @@ int exynos_dp_read_byte_from_i2c(struct exynos_dp_device *dp,
|
|||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
dev_err(dp->dev, "Aux Transaction fail!\n");
|
dev_dbg(dp->dev, "%s: Aux Transaction fail!\n",
|
||||||
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read data */
|
/* Read data */
|
||||||
@ -785,7 +790,9 @@ int exynos_dp_read_bytes_from_i2c(struct exynos_dp_device *dp,
|
|||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
dev_err(dp->dev, "Aux Transaction fail!\n");
|
dev_dbg(dp->dev,
|
||||||
|
"%s: Aux Transaction fail!\n",
|
||||||
|
__func__);
|
||||||
}
|
}
|
||||||
/* Check if Rx sends defer */
|
/* Check if Rx sends defer */
|
||||||
reg = readl(dp->reg_base + EXYNOS_DP_AUX_RX_COMM);
|
reg = readl(dp->reg_base + EXYNOS_DP_AUX_RX_COMM);
|
||||||
|
Loading…
Reference in New Issue
Block a user