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 c9975a1e00e arch/arm/stm32h5/stm32_ethernet: Add missing 
netdev_carrier calls
c9975a1e00e is described below

commit c9975a1e00ec6e44afda15e894789fccdde7b203
Author: Patrick José Pereira <[email protected]>
AuthorDate: Fri May 22 12:53:13 2026 -0300

    arch/arm/stm32h5/stm32_ethernet: Add missing netdev_carrier calls
    
    This follows what was done in a7567677a8
    
    Signed-off-by: Patrick José Pereira <[email protected]>
---
 arch/arm/src/stm32h5/stm32_ethernet.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/src/stm32h5/stm32_ethernet.c 
b/arch/arm/src/stm32h5/stm32_ethernet.c
index 48c972aa2f5..4dbcee14fb6 100644
--- a/arch/arm/src/stm32h5/stm32_ethernet.c
+++ b/arch/arm/src/stm32h5/stm32_ethernet.c
@@ -2464,6 +2464,7 @@ static int stm32_ifup(struct net_driver_s *dev)
   up_enable_irq(STM32_IRQ_ETH);
 
   stm32_checksetup();
+  netdev_carrier_on(dev);
   return OK;
 }
 
@@ -2509,6 +2510,7 @@ static int stm32_ifdown(struct net_driver_s *dev)
   /* Mark the device "down" */
 
   priv->ifup = false;
+  netdev_carrier_off(dev);
   leave_critical_section(flags);
   return OK;
 }

Reply via email to