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 19fd4c3a835cc83b18397b2196e6d3deac6bff88 Author: wangshaoxin <[email protected]> AuthorDate: Wed Dec 31 18:15:10 2025 +0800 drivers/rptun: sleep instead of spinning while waiting for the peer While a rebooting core busy-waits for the peer to acknowledge, it cannot serve rpmsg, so a peer that syncs its rpmsgfs mounts on the way down times out. Outside interrupt context, sleep between the polls. Signed-off-by: wangshaoxin <[email protected]> Signed-off-by: Bowen Wang <[email protected]> --- drivers/rptun/rptun.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 4869b24c621..a6fafd62370 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -1163,7 +1163,14 @@ static int rptun_dev_reset(FAR struct rptun_priv_s *priv, unsigned long val) break; } - up_udelay(1000); + if (up_interrupt_context()) + { + up_udelay(1000); + } + else + { + nxsig_usleep(1000); + } } }
