Browse Source

Merge branch 'fbdev-for-linus' into fbdev-next

Florian Tobias Schandinat 13 years ago
parent
commit
0d04c58aa4
2 changed files with 7 additions and 1 deletions
  1. 1 1
      drivers/video/omap2/displays/Kconfig
  2. 6 0
      drivers/video/omap2/dss/apply.c

+ 1 - 1
drivers/video/omap2/displays/Kconfig

@@ -12,7 +12,7 @@ config PANEL_GENERIC_DPI
 
 config PANEL_DVI
 	tristate "DVI output"
-	depends on OMAP2_DSS_DPI
+	depends on OMAP2_DSS_DPI && I2C
 	help
 	  Driver for external monitors, connected via DVI. The driver uses i2c
 	  to read EDID information from the monitor.

+ 6 - 0
drivers/video/omap2/dss/apply.c

@@ -1276,6 +1276,9 @@ int dss_ovl_enable(struct omap_overlay *ovl)
 
 	spin_unlock_irqrestore(&data_lock, flags);
 
+	/* wait for overlay to be enabled */
+	wait_pending_extra_info_updates();
+
 	mutex_unlock(&apply_lock);
 
 	return 0;
@@ -1313,6 +1316,9 @@ int dss_ovl_disable(struct omap_overlay *ovl)
 
 	spin_unlock_irqrestore(&data_lock, flags);
 
+	/* wait for the overlay to be disabled */
+	wait_pending_extra_info_updates();
+
 	mutex_unlock(&apply_lock);
 
 	return 0;