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

commit 49169264015a1010ba85613ae794e841db9de22a
Author: Bowen Wang <[email protected]>
AuthorDate: Tue Dec 16 21:22:31 2025 +0800

    drivers/rptun: acknowledge the reset when boardctl cannot do it
    
    Without CONFIG_BOARDCTL_RESET or CONFIG_BOARDCTL_POWEROFF this core
    cannot reset itself, and the peer waited until timeout. Echo the
    requested status bit so the peer can go on.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/rptun/rptun.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c
index a6fafd62370..aee1538507d 100644
--- a/drivers/rptun/rptun.c
+++ b/drivers/rptun/rptun.c
@@ -948,6 +948,9 @@ static void rptun_check_peer_status(FAR struct rptun_priv_s 
*priv)
 #ifdef CONFIG_BOARDCTL_POWEROFF
           work_queue(HPWORK, &priv->work, rptun_boardctl_work,
             (FAR void *)(uintptr_t)BOARDIOC_SOFTRESETCAUSE_POWEROFF, 0);
+#else
+          rptun_set_status(priv,
+                           (unsigned long)BOARDIOC_SOFTRESETCAUSE_POWEROFF);
 #endif
         }
       else
@@ -955,6 +958,8 @@ static void rptun_check_peer_status(FAR struct rptun_priv_s 
*priv)
 #ifdef CONFIG_BOARDCTL_RESET
           work_queue(HPWORK, &priv->work, rptun_boardctl_work,
                      (FAR void *)(uintptr_t)RPTUN_REASON_GET(status), 0);
+#else
+          rptun_set_status(priv, (unsigned long)RPTUN_REASON_GET(status));
 #endif
         }
     }

Reply via email to