]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i2c: tda998x: force the page register at startup time
authorJean-Francois Moine <moinejf@free.fr>
Sat, 25 Jan 2014 17:14:45 +0000 (18:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 2 Feb 2014 16:44:52 +0000 (16:44 +0000)
This patch forces the page register to be set on the first I/O operation.

Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c

index de0572ec597e688705db377bccdb2002d36ff884..e871a42463792469a8e6c63c9e8d586ad02e543e 100644 (file)
@@ -1144,7 +1144,7 @@ tda998x_encoder_init(struct i2c_client *client,
        priv->vip_cntrl_1 = VIP_CNTRL_1_SWAP_C(0) | VIP_CNTRL_1_SWAP_D(1);
        priv->vip_cntrl_2 = VIP_CNTRL_2_SWAP_E(4) | VIP_CNTRL_2_SWAP_F(5);
 
-       priv->current_page = 0;
+       priv->current_page = 0xff;
        priv->cec = i2c_new_dummy(client->adapter, 0x34);
        if (!priv->cec)
                return -ENODEV;