From 5341f4a8ad1dabf0b4c9fd5f130b015d72678ee5 Mon Sep 17 00:00:00 2001 From: Angelo Dureghello Date: Mon, 22 Apr 2024 09:52:52 +0200 Subject: [PATCH] soc: st: set soc-level phy priority Introducing MDIO and PHY support for stm32, phy driver gets error (-116) if it tries to read phy chip id, since MDIO IP is part of ETH IP, and eth hw module is still not initialized. Forcing a priority that allows possibly connected PHY chip to be detected properly at initial boot. Signed-off-by: Angelo Dureghello --- soc/st/stm32/Kconfig.defconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/st/stm32/Kconfig.defconfig b/soc/st/stm32/Kconfig.defconfig index d90ce9b7da8..64f6b817dd0 100644 --- a/soc/st/stm32/Kconfig.defconfig +++ b/soc/st/stm32/Kconfig.defconfig @@ -57,6 +57,10 @@ config CLOCK_CONTROL_INIT_PRIORITY default 1 depends on CLOCK_CONTROL +config PHY_INIT_PRIORITY + default 81 + depends on NET_L2_ETHERNET && ETH_DRIVER + config MEMC_STM32 default y depends on MEMC