This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 9a6d2ab7982 arch/arm/stm32: Do not ask for the PHY status register 
with PHYLIB.
9a6d2ab7982 is described below

commit 9a6d2ab79825db233d973c5b3177c784a7b5e7b3
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Nov 18 08:55:01 2026 +0100

    arch/arm/stm32: Do not ask for the PHY status register with PHYLIB.
    
    With CONFIG_NET_PHYLIB, the Ethernet v2 driver lets PHYLIB manage the
    PHY and does not use CONFIG_STM32_PHYSR and the CONFIG_STM32_PHYSR_*
    masks.  Kconfig still asked for them, and they have no default.  So
    stm32n6570-dk:netnsh, which uses PHYLIB and does not set them, fails
    "make olddefconfig":
    
      warning: the value '' is invalid for STM32_PHYSR ... assignment ignored
    
    Show these options only when the driver uses them: without PHYLIB, or
    with the m3m4 v1 driver, which does not support PHYLIB.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 arch/arm/src/common/stm32/Kconfig.eth | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/src/common/stm32/Kconfig.eth 
b/arch/arm/src/common/stm32/Kconfig.eth
index bd8aa0c2525..12b8dc63bc5 100644
--- a/arch/arm/src/common/stm32/Kconfig.eth
+++ b/arch/arm/src/common/stm32/Kconfig.eth
@@ -88,6 +88,8 @@ config STM32_AUTONEG_10FD_ONLY
                detection, which cannot detect duplex and will pick half --
                a genuine mismatch that stalls bulk traffic completely.
 
+if !NET_PHYLIB || !STM32_HAVE_IP_ETHMAC_V2
+
 config STM32_PHYSR
        int "PHY Status Register Address (decimal)"
        ---help---
@@ -167,6 +169,8 @@ config STM32_PHYSR_100FD
 
 endif # STM32_PHYSR_ALTCONFIG
 
+endif # !NET_PHYLIB || !STM32_HAVE_IP_ETHMAC_V2
+
 endif # STM32_AUTONEG
 
 config STM32_ETH_PTP

Reply via email to