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

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

commit f4cfc9579d84377be15289ba68d850bb5ec4cfbc
Author: Bowen Wang <[email protected]>
AuthorDate: Wed Jan 7 15:50:58 2026 +0800

    drivers/rptun: change the notify wait return type after upgrade OpenAMP
    
    return -EAGAIN will cause rpmsg_virtio_get_tx_payload_buffer() in
    OpenAMP break immediately, but should return to the sleep() logic
    to wait buffer is return.
    
    Signed-off-by: Bowen Wang <[email protected]>
    Signed-off-by: Yongrong Wang <[email protected]>
---
 drivers/rpmsg/rpmsg_virtio_lite.c | 2 +-
 drivers/rptun/rptun.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/rpmsg/rpmsg_virtio_lite.c 
b/drivers/rpmsg/rpmsg_virtio_lite.c
index 469a5d27f04..2925609c3e2 100644
--- a/drivers/rpmsg/rpmsg_virtio_lite.c
+++ b/drivers/rpmsg/rpmsg_virtio_lite.c
@@ -634,7 +634,7 @@ static int rpmsg_virtio_lite_notify_wait(FAR struct 
rpmsg_device *rdev,
 
   if (!rpmsg_virtio_lite_is_recursive(priv))
     {
-      return -EAGAIN;
+      return RPMSG_EOPNOTSUPP;
     }
 
   /* Wait to wakeup */
diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c
index f372b199ddb..f231825bdf6 100644
--- a/drivers/rptun/rptun.c
+++ b/drivers/rptun/rptun.c
@@ -533,7 +533,7 @@ static int rptun_notify_wait(FAR struct rpmsg_device *rdev, 
uint32_t id)
 
   if (!rptun_is_recursive(priv))
     {
-      return -EAGAIN;
+      return RPMSG_EOPNOTSUPP;
     }
 
   /* Wait to wakeup */

Reply via email to