drivers: eth: mcux: Fix PTP clock init priority dependency
The net_core device initialization has a subtle dependency on the PTP clock initialization. Adding a Kconfig and set it to a priority level less than net_core. This will ensure the initialization sequence. Fixes #38571 Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
parent
81595ed4db
commit
fb5192656a
2 changed files with 9 additions and 1 deletions
|
@ -1541,6 +1541,6 @@ static int ptp_mcux_init(const struct device *port)
|
|||
|
||||
DEVICE_DEFINE(mcux_ptp_clock_0, PTP_CLOCK_NAME, ptp_mcux_init,
|
||||
NULL, &ptp_mcux_0_context, NULL, POST_KERNEL,
|
||||
CONFIG_APPLICATION_INIT_PRIORITY, &api);
|
||||
CONFIG_ETH_MCUX_PTP_CLOCK_INIT_PRIO, &api);
|
||||
|
||||
#endif /* CONFIG_PTP_CLOCK_MCUX */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue