Skip to content

Commit

Permalink
drivers: can: increase default initialization priority from 50 to 80
Browse files Browse the repository at this point in the history
Increase the default CAN controller driver initialization priority from
KERNEL_INIT_PRIORITY_DEVICE (50) to 80 to allow CAN controllers on SPI
busses have their bus initialized prior to initializing the CAN controller
driver.

The only in-bound dependency on CAN controller drivers - apart from
application level code - is the drivers/net/canbus.c driver, which already
defaults to an initialization level of 81.

Fixes: zephyrproject-rtos#55745

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen authored and nashif committed Jun 1, 2023
1 parent b716027 commit b12eb78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions boards/shields/mcp2515/Kconfig.defconfig

This file was deleted.

2 changes: 1 addition & 1 deletion drivers/can/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ source "subsys/logging/Kconfig.template.log_config"

config CAN_INIT_PRIORITY
int "CAN driver init priority"
default KERNEL_INIT_PRIORITY_DEVICE
default 80
help
CAN driver device initialization priority.

Expand Down

0 comments on commit b12eb78

Please sign in to comment.