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 378dadbbf685f861450cf91efc3b3156e1dff381
Author: Bowen Wang <[email protected]>
AuthorDate: Sun May 17 21:15:45 2026 +0800

    drivers/mtd/rpmsgmtd: run the client endpoint at RPMSG_PRIO_RT
    
    The client callbacks only copy the reply into the waiting request and
    post its semaphore. Give the client endpoint RPMSG_PRIO_RT so they run
    directly from the rx path instead of waking a work queue thread for
    every reply.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/mtd/rpmsgmtd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/rpmsgmtd.c b/drivers/mtd/rpmsgmtd.c
index 0188b85d547..a78169fd57f 100644
--- a/drivers/mtd/rpmsgmtd.c
+++ b/drivers/mtd/rpmsgmtd.c
@@ -1026,6 +1026,7 @@ static void rpmsgmtd_device_created(FAR struct 
rpmsg_device *rdev,
       priv->ept.ns_bound_cb = rpmsgmtd_ns_bound;
       snprintf(buf, sizeof(buf), "%s%s", RPMSGMTD_NAME_PREFIX,
                priv->remotepath);
+      rpmsg_set_priority(&priv->ept, RPMSG_PRIO_RT);
       rpmsg_create_ept(&priv->ept, rdev, buf,
                        RPMSG_ADDR_ANY, RPMSG_ADDR_ANY,
                        rpmsgmtd_ept_cb, NULL);

Reply via email to