[PATCH 22/44] leon, grspw_pkt: fix stscfg cfg TimeCode Int clr
Daniel Hellstrom
daniel at gaisler.com
Fri Mar 3 14:56:55 UTC 2017
Without this patch time code interrupts was never cleared
in the STATUS register.
---
c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c b/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
index 60aa68f..5f40853 100644
--- a/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
+++ b/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
@@ -2666,7 +2666,8 @@ STATIC void grspw_isr(void *data)
/* Get Status from Hardware */
stat = REG_READ(&priv->regs->status);
- stat_clrmsk = stat & (GRSPW_STS_TO | GRSPW_STAT_ERROR) & priv->stscfg;
+ stat_clrmsk = stat & (GRSPW_STS_TO | GRSPW_STAT_ERROR) &
+ (GRSPW_STS_TO | priv->stscfg);
/* Make sure to put the timecode handling first in order to get the
* smallest possible interrupt latency
--
2.7.4
More information about the devel
mailing list