drm/bridge/sii8620: fix disconnect sequence
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 1 Feb 2017 07:47:45 +0000 (08:47 +0100)
committerArchit Taneja <architt@codeaurora.org>
Thu, 2 Feb 2017 09:45:28 +0000 (15:15 +0530)
The patch allows to avoid rare cases when discovery fails.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1485935272-17337-19-git-send-email-a.hajda@samsung.com
drivers/gpu/drm/bridge/sil-sii8620.c

index 3a37dfdf919ef9281b943ce5843f4006acd6ac36..80ff64322fa0affe5c96f9cb2ebcae67f34456ab 100644 (file)
@@ -1287,10 +1287,12 @@ static void sii8620_disconnect(struct sii8620 *ctx)
 {
        sii8620_disable_gen2_write_burst(ctx);
        sii8620_stop_video(ctx);
-       msleep(50);
+       msleep(100);
        sii8620_cbus_reset(ctx);
        sii8620_set_mode(ctx, CM_DISCONNECTED);
        sii8620_write_seq_static(ctx,
+               REG_TX_ZONE_CTL1, 0,
+               REG_MHL_PLL_CTL0, 0x07,
                REG_COC_CTL0, 0x40,
                REG_CBUS3_CNVT, 0x84,
                REG_COC_CTL14, 0x00,