mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
ARC: Reset the value of Interrupt Priority Register
In case bootloader has changed the priority of one/more IRQ lines Reported-by: Noam Camus <noamc@ezchip.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
07ba69a46c
commit
54c8bff14d
1 changed files with 7 additions and 3 deletions
|
@ -39,10 +39,14 @@ void arc_init_IRQ(void)
|
||||||
level_mask |= IS_ENABLED(CONFIG_ARC_IRQ5_LV2) << 5;
|
level_mask |= IS_ENABLED(CONFIG_ARC_IRQ5_LV2) << 5;
|
||||||
level_mask |= IS_ENABLED(CONFIG_ARC_IRQ6_LV2) << 6;
|
level_mask |= IS_ENABLED(CONFIG_ARC_IRQ6_LV2) << 6;
|
||||||
|
|
||||||
if (level_mask) {
|
/*
|
||||||
pr_info("Level-2 interrupts bitset %x\n", level_mask);
|
* Write to register, even if no LV2 IRQs configured to reset it
|
||||||
|
* in case bootloader had mucked with it
|
||||||
|
*/
|
||||||
write_aux_reg(AUX_IRQ_LEV, level_mask);
|
write_aux_reg(AUX_IRQ_LEV, level_mask);
|
||||||
}
|
|
||||||
|
if (level_mask)
|
||||||
|
pr_info("Level-2 interrupts bitset %x\n", level_mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue