未验证 提交 27f26359 编写于 作者: X Xin Ji 提交者: Robert Foss

drm/bridge: anx7625: Set downstream sink into normal status

As downstream sink was set into standby mode while bridge disabled,
this patch used for setting downstream sink into normal status
while enable bridge.
Signed-off-by: NXin Ji <xji@analogixsemi.com>
Reviewed-by: NPin-Yen Lin <treapking@chromium.org>
Signed-off-by: NRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220322080213.1487134-1-xji@analogixsemi.com
上级 3ccd59f9
...@@ -924,12 +924,20 @@ static void anx7625_dp_start(struct anx7625_data *ctx) ...@@ -924,12 +924,20 @@ static void anx7625_dp_start(struct anx7625_data *ctx)
{ {
int ret; int ret;
struct device *dev = &ctx->client->dev; struct device *dev = &ctx->client->dev;
u8 data;
if (!ctx->display_timing_valid) { if (!ctx->display_timing_valid) {
DRM_DEV_ERROR(dev, "mipi not set display timing yet.\n"); DRM_DEV_ERROR(dev, "mipi not set display timing yet.\n");
return; return;
} }
dev_dbg(dev, "set downstream sink into normal\n");
/* Downstream sink enter into normal mode */
data = 1;
ret = anx7625_aux_trans(ctx, DP_AUX_NATIVE_WRITE, 0x000600, 1, &data);
if (ret < 0)
dev_err(dev, "IO error : set sink into normal mode fail\n");
/* Disable HDCP */ /* Disable HDCP */
anx7625_write_and(ctx, ctx->i2c.rx_p1_client, 0xee, 0x9f); anx7625_write_and(ctx, ctx->i2c.rx_p1_client, 0xee, 0x9f);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册