[Sound-open-firmware] [PATCH 1/2] core: Limit children irq mask

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Mar 29 14:44:07 CEST 2018


From: Tomasz Lauda <tomasz.lauda at linux.intel.com>

Currently we support maximum of 32 children irqs, so limit the irq mask to not overflow the children irq array.

Signed-off-by: Tomasz Lauda <tomasz.lauda at linux.intel.com>
---
 src/include/reef/interrupt-map.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/reef/interrupt-map.h b/src/include/reef/interrupt-map.h
index b9682587..a29f85e7 100644
--- a/src/include/reef/interrupt-map.h
+++ b/src/include/reef/interrupt-map.h
@@ -39,7 +39,7 @@
 #define REEF_IRQ_NUM_SHIFT	0
 #define REEF_IRQ_NUM_MASK	0xff
 #define REEF_IRQ_LEVEL_MASK	0xff
-#define REEF_IRQ_BIT_MASK	0xff
+#define REEF_IRQ_BIT_MASK	0x1f
 #define REEF_IRQ_CPU_MASK	0xff
 
 #define REEF_IRQ(_bit, _level, _cpu, _number) \
-- 
2.14.1



More information about the Sound-open-firmware mailing list