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 99617b9642928845774403a13332b95411c032d6
Author: guanyi3 <[email protected]>
AuthorDate: Thu Nov 26 10:07:30 2026 +0800

    drivers/reset/reset_rpmsg: run the client endpoint at RPMSG_PRIO_RT
    
    The client endpoint callback only stores the result of a request and
    posts the semaphore its caller waits on, which is safe in interrupt
    context. Run the endpoint at RPMSG_PRIO_RT so that the reply is handled
    inline from the rx interrupt instead of through the rpmsg work queue.
    
    Signed-off-by: guanyi3 <[email protected]>
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/reset/reset_rpmsg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/reset/reset_rpmsg.c b/drivers/reset/reset_rpmsg.c
index a343c977422..289a2a90a53 100644
--- a/drivers/reset/reset_rpmsg.c
+++ b/drivers/reset/reset_rpmsg.c
@@ -197,6 +197,7 @@ static void reset_rpmsg_client_created(FAR struct 
rpmsg_device *rdev,
 
   if (strcmp(client->cpuname, rpmsg_get_cpuname(rdev)) == 0)
     {
+      rpmsg_set_priority(&client->ept, RPMSG_PRIO_RT);
       rpmsg_create_ept(&client->ept, rdev, RESET_RPMSG_EPT_NAME,
                        RPMSG_ADDR_ANY, RPMSG_ADDR_ANY,
                        reset_rpmsg_ept_cb, NULL);

Reply via email to