Skip to content

Commit 5e01466

Browse files
fabiobaltierinashif
authored andcommitted
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 <[email protected]>
1 parent ca537cf commit 5e01466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_xlnx_ps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static void gpio_xlnx_ps##idx##_irq_config(const struct device *dev)\
129129
#define GPIO_XLNX_PS_DEV_DEFINE(idx)\
130130
DEVICE_DT_INST_DEFINE(idx, gpio_xlnx_ps_init, NULL,\
131131
&gpio_xlnx_ps##idx##_data, &gpio_xlnx_ps##idx##_cfg,\
132-
PRE_KERNEL_2, CONFIG_GPIO_INIT_PRIORITY, &gpio_xlnx_ps_default_apis);
132+
PRE_KERNEL_1, CONFIG_GPIO_INIT_PRIORITY, &gpio_xlnx_ps_default_apis);
133133

134134
/*
135135
* Top-level device initialization macro, executed for each PS GPIO

0 commit comments

Comments
 (0)