Browse Source

drm/armada: reset all atomic state during driver initialisation

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>
Russell King 7 years ago
parent
commit
80c63aee81
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gpu/drm/armada/armada_drv.c

+ 2 - 0
drivers/gpu/drm/armada/armada_drv.c

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