mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
After interrupt read value from register to make sure it reached hardware. This
should fix "Spurious inteerupt" message Suggested by ian@
This commit is contained in:
parent
b4e360d239
commit
5967db8dca
1 changed files with 4 additions and 0 deletions
|
|
@ -356,6 +356,8 @@ am335x_lcd_intr(void *arg)
|
|||
|
||||
reg = LCD_READ4(sc, LCD_IRQSTATUS);
|
||||
LCD_WRITE4(sc, LCD_IRQSTATUS, reg);
|
||||
/* Read value back to make sure it reached the hardware */
|
||||
reg = LCD_READ4(sc, LCD_IRQSTATUS);
|
||||
|
||||
if (reg & IRQ_SYNC_LOST) {
|
||||
reg = LCD_READ4(sc, LCD_RASTER_CTRL);
|
||||
|
|
@ -401,6 +403,8 @@ am335x_lcd_intr(void *arg)
|
|||
|
||||
done:
|
||||
LCD_WRITE4(sc, LCD_END_OF_INT_IND, 0);
|
||||
/* Read value back to make sure it reached the hardware */
|
||||
reg = LCD_READ4(sc, LCD_END_OF_INT_IND);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue