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 9defd51cd56c8a7c3d91044c9013becee07b1d1f
Author: Bowen Wang <[email protected]>
AuthorDate: Sat Dec 6 17:26:49 2025 +0800

    drivers/rptun: use PANIC rather than ASSERT as the halt reason
    
    BOARDIOC_SOFTRESETCAUSE_ASSERT and _PANIC mean the same to the peer.
    Send PANIC on SYS_HALT, and drop the extra panic broadcast that
    RPTUN_AUTO_RESET_IN_REBOOT_NOTIFIER did right before it.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/rptun/rptun.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c
index 9417b853f65..8c78ae0e184 100644
--- a/drivers/rptun/rptun.c
+++ b/drivers/rptun/rptun.c
@@ -1400,11 +1400,7 @@ static int rptun_notifier(FAR struct notifier_block 
*block,
         }
       else if (action == SYS_HALT)
         {
-#ifdef CONFIG_RPTUN_AUTO_RESET_IN_REBOOT_NOTIFIER
-          rptun_ioctl_foreach(NULL, RPTUNIOC_RESET,
-                              (unsigned long)BOARDIOC_SOFTRESETCAUSE_PANIC);
-#endif
-          val = BOARDIOC_SOFTRESETCAUSE_ASSERT;
+          val = BOARDIOC_SOFTRESETCAUSE_PANIC;
         }
       else
         {

Reply via email to