Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 27f2635

Browse files
Xin-ANXrobertfoss
authored andcommitted
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: Xin Ji <[email protected]> Reviewed-by: Pin-Yen Lin <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 3ccd59f commit 27f2635

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,12 +924,20 @@ static void anx7625_dp_start(struct anx7625_data *ctx)
924924
{
925925
int ret;
926926
struct device *dev = &ctx->client->dev;
927+
u8 data;
927928

928929
if (!ctx->display_timing_valid) {
929930
DRM_DEV_ERROR(dev, "mipi not set display timing yet.\n");
930931
return;
931932
}
932933

934+
dev_dbg(dev, "set downstream sink into normal\n");
935+
/* Downstream sink enter into normal mode */
936+
data = 1;
937+
ret = anx7625_aux_trans(ctx, DP_AUX_NATIVE_WRITE, 0x000600, 1, &data);
938+
if (ret < 0)
939+
dev_err(dev, "IO error : set sink into normal mode fail\n");
940+
933941
/* Disable HDCP */
934942
anx7625_write_and(ctx, ctx->i2c.rx_p1_client, 0xee, 0x9f);
935943

0 commit comments

Comments
 (0)