[PATCH v3 1/3] ARC: IRQ: Use hwirq instead of virq in mask/unmask

2016-12-28 Thread Yuriy Kolerov
It is necessary to use hwirq instead of virq when you communicate with an interrupt controller since there is no guaranty that virq numbers match hwirq numbers. Signed-off-by: Yuriy Kolerov --- arch/arc/kernel/intc-arcv2.c | 6 +++--- arch/arc/kernel/intc-compact.c | 4 ++-- 2 files changed, 5

[PATCH v3 2/3] ARCv2: IRQ: Call entry/exit functions for chained handlers in MCIP

2016-12-28 Thread Yuriy Kolerov
It is necessary to call entry/exit functions for parent interrupt controllers for proper masking/unmasking of interrupt lines. Signed-off-by: Yuriy Kolerov --- arch/arc/kernel/mcip.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arc/kernel/mcip.c b/arch/arc/kernel/mcip.c index f39

[PATCH v3 3/3] ARCv2: MCIP: Deprecate setting of affinity in Device Tree

2016-12-28 Thread Yuriy Kolerov
Ignore value of interrupt distribution mode for common interrupts in IDU since setting of affinity using value from Device Tree is deprecated in ARC. Originally it is done in idu_irq_xlate() function and it is semantically wrong and does not guaranty that an affinity value will be set properly. idu

[PATCH v3 0/3] Fixes for IRQ subsystem

2016-12-28 Thread Yuriy Kolerov
First 2 patches fix potential bugs in IRQ subsystem. The third one deprecates setting of affinity in Device Tree and moves setting of the initial value of affinity to irq_enable() function of IRQ chip. Changes for v3: * Remove patch for manual setting of the global variable irq_default_affinit