drm/armada: reset all atomic state during driver initialisation
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 30 Jul 2018 10:52:34 +0000 (11:52 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 30 Jul 2018 10:52:34 +0000 (11:52 +0100)
Reset the atomic state of any converted components during driver
initialisation to ensure that we have the atomic state initialised for
any component converted to atomic modeset.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_drv.c

index d1705d298a39f1011221c1018e08f981416da48d..e47b995b4ce6376db0c621228e5ade14bbb11369 100644 (file)
@@ -155,6 +155,8 @@ static int armada_drm_bind(struct device *dev)
 
        priv->drm.irq_enabled = true;
 
+       drm_mode_config_reset(&priv->drm);
+
        ret = armada_fbdev_init(&priv->drm);
        if (ret)
                goto err_comp;