zephyr/drivers/mdio/Kconfig.lan865x
Parthiban Veerasooran 5e6e8da495 drivers: ethernet: lan865x: fix module init priority
Align the LAN865x driver module initialization priority with the default
priorities of MDIO and PHY drivers. The microchip_t1s PHY driver supports
both LAN865x internal PHY and LAN867x external PHY. It was observed that
the microchip_t1s driver initialization priority did not match the
priority sequence used by the GMAC driver when the evb-lan8670-rmii (an
external LAN8670 PHY) was connected to the SAME54 Curiosity Ultra
platform, leading to potential initialization order issues. This change
ensures the correct initialization sequence for reliable operation.

The initialization priorities of the microchip_t1s and mdio_lan865x
drivers are now set to the default values used in Zephyr. The LAN865x
driver init priority is updated to the most appropriate value so that the
microchip_t1s init priority aligns with all MAC drivers, maintaining the
correct initialization sequence.

Since the microchip_t1s driver can be used by many MAC drivers, keeping
the default priority provided by Zephyr is a good approach. Instead,
setting a specific priority for the eth_lan865x driver is more appropriate
to ensure proper initialization order.

Signed-off-by: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
2025-07-22 08:13:01 -04:00

11 lines
251 B
Plaintext

# Copyright 2024 Microchip Technology Inc
# SPDX-License-Identifier: Apache-2.0
config MDIO_LAN865X
bool "LAN865X MDIO driver"
default y
depends on DT_HAS_MICROCHIP_LAN865X_MDIO_ENABLED
depends on ETH_LAN865X
help
Enable LAN865X MDIO driver.