Skip to content

Commit

Permalink
OMAPDSS: gracefully disable overlay at error
Browse files Browse the repository at this point in the history
Disable overlay via ovl->disable() interface, which will
properly set flags in cache and GO bits for managers.
This allows overlay user to re-enable it on next frame,
thus recovering from FIFO underflows.

Signed-off-by: Sergey Kibrik <sergiikibrik@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Sergey Kibrik authored and Tomi Valkeinen committed Jun 17, 2013
1 parent b0e449c commit 595470a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/omap2/dss/dispc-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ static void dispc_error_worker(struct work_struct *work)
if (bit & errors) {
DSSERR("FIFO UNDERFLOW on %s, disabling the overlay\n",
ovl->name);
dispc_ovl_enable(ovl->id, false);
dispc_mgr_go(ovl->manager->id);
ovl->disable(ovl);
msleep(50);
}
}
Expand Down

0 comments on commit 595470a

Please sign in to comment.