Skip to content

Commit

Permalink
OMAP: DSS2: clear spurious SYNC_LOST_DIGIT interrupts
Browse files Browse the repository at this point in the history
When DSS transitions from off mode to on VENC may generate a spurious
SYNC_LOST_DIGIT error. Just ack it when restoring the context. Also
restore IRQENABLE last to avoid triggering interrupts before the
context is fully restored.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
  • Loading branch information
Ville Syrjälä authored and Tomi Valkeinen committed Aug 3, 2010
1 parent a74b260 commit 75c7d59
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void dispc_save_context(void)
void dispc_restore_context(void)
{
RR(SYSCONFIG);
RR(IRQENABLE);
/*RR(IRQENABLE);*/
/*RR(CONTROL);*/
RR(CONFIG);
RR(DEFAULT_COLOR0);
Expand Down Expand Up @@ -472,6 +472,15 @@ void dispc_restore_context(void)

/* enable last, because LCD & DIGIT enable are here */
RR(CONTROL);

/* clear spurious SYNC_LOST_DIGIT interrupts */
dispc_write_reg(DISPC_IRQSTATUS, DISPC_IRQ_SYNC_LOST_DIGIT);

/*
* enable last so IRQs won't trigger before
* the context is fully restored
*/
RR(IRQENABLE);
}

#undef SR
Expand Down

0 comments on commit 75c7d59

Please sign in to comment.