drivers: intc: mchp_ecia_xec: Ensure correct device init order
We need to ensure that the XEC GIRQs are initialized after the XEC ECIA device. Right now we depend on the linker ordering things correctly since everything is at INTC_INIT_PRIORITY priority Set the XEC GIRQs to 41 so the init priority is one more than INTC_INIT_PRIORITY that is used by xec-ecia. Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
parent
091f70b367
commit
161ca0376f
2 changed files with 14 additions and 1 deletions
|
@ -574,7 +574,7 @@ static int xec_ecia_init(const struct device *dev)
|
|||
\
|
||||
DEVICE_DT_DEFINE(n, xec_girq_init_##n, \
|
||||
NULL, &xec_data_girq_##n, &xec_config_girq_##n, \
|
||||
PRE_KERNEL_1, CONFIG_INTC_INIT_PRIORITY, \
|
||||
PRE_KERNEL_1, CONFIG_XEC_GIRQ_INIT_PRIORITY, \
|
||||
NULL); \
|
||||
\
|
||||
static int xec_girq_init_##n(const struct device *dev) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue