arc: interrupt_controller: increase irq unit priority

arc_v2_irq_unit_init function will init all interrupts and disable
they, we must make sure we call it first before we use interrupts.
so we need to increase its priority to highest in PRE_KERNEL_1 stage.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
Watson Zeng 2021-05-21 11:48:16 +08:00 committed by Kumar Gala
commit f05593e726

View file

@ -218,9 +218,7 @@ static int arc_v2_irq_unit_device_ctrl(const struct device *dev,
}
SYS_DEVICE_DEFINE("arc_v2_irq_unit", arc_v2_irq_unit_init,
arc_v2_irq_unit_device_ctrl, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
arc_v2_irq_unit_device_ctrl, PRE_KERNEL_1, 0);
#else
SYS_INIT(arc_v2_irq_unit_init, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(arc_v2_irq_unit_init, PRE_KERNEL_1, 0);
#endif /* CONFIG_PM_DEVICE */