drivers: gpio: xlnx_ps: fix up initialization priorities
Current setup tries to initialize the bank driver before the parent one, which is the inverse of what the devicetree hierarchy implies and causes a bunch of: ERROR: /soc/gpio@e000a000/psgpio_bank@3 PRE_KERNEL_1 40 32 < /soc/gpio@e000a000 PRE_KERNEL_2 40 10 Change the bank driver to initialize at PRE_KERNEL_1 as the parent drivers so that ordinals take care of priority between these two. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
ca537cf147
commit
5e01466d97
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ static void gpio_xlnx_ps##idx##_irq_config(const struct device *dev)\
|
||||||
#define GPIO_XLNX_PS_DEV_DEFINE(idx)\
|
#define GPIO_XLNX_PS_DEV_DEFINE(idx)\
|
||||||
DEVICE_DT_INST_DEFINE(idx, gpio_xlnx_ps_init, NULL,\
|
DEVICE_DT_INST_DEFINE(idx, gpio_xlnx_ps_init, NULL,\
|
||||||
&gpio_xlnx_ps##idx##_data, &gpio_xlnx_ps##idx##_cfg,\
|
&gpio_xlnx_ps##idx##_data, &gpio_xlnx_ps##idx##_cfg,\
|
||||||
PRE_KERNEL_2, CONFIG_GPIO_INIT_PRIORITY, &gpio_xlnx_ps_default_apis);
|
PRE_KERNEL_1, CONFIG_GPIO_INIT_PRIORITY, &gpio_xlnx_ps_default_apis);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Top-level device initialization macro, executed for each PS GPIO
|
* Top-level device initialization macro, executed for each PS GPIO
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue