Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18135ead authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

OMAPDSS: APPLY: skip isr register and config for manual update displays



The mechanism to cache manager and overlay settings and configure them
into the HW registers in VSYNC is meant only for auto-update displays,
as it doesn't make sense (and doesn't work) for manual-update displays.

This patchs adds a check so that we skip the above for manual update
displays.

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent be729178
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
@@ -629,6 +629,7 @@ int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
	}

	r = 0;
	if (!mgr_manual_update(mgr)) {
		if (!dss_cache.irq_enabled) {
			u32 mask;

@@ -637,7 +638,8 @@ int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
			if (dss_has_feature(FEAT_MGR_LCD2))
				mask |= DISPC_IRQ_VSYNC2;

		r = omap_dispc_register_isr(dss_apply_irq_handler, NULL, mask);
			r = omap_dispc_register_isr(dss_apply_irq_handler,
					NULL, mask);

			if (r)
				DSSERR("failed to register apply isr\n");
@@ -646,6 +648,7 @@ int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
		}

		configure_dispc();
	}

	spin_unlock_irqrestore(&dss_cache.lock, flags);