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

    drivers/power/supply/regulator_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/power/supply/regulator_rpmsg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/supply/regulator_rpmsg.c 
b/drivers/power/supply/regulator_rpmsg.c
index ac82197619f..8ae11595814 100644
--- a/drivers/power/supply/regulator_rpmsg.c
+++ b/drivers/power/supply/regulator_rpmsg.c
@@ -307,6 +307,7 @@ static void regulator_rpmsg_client_created(struct 
rpmsg_device *rdev,
   if (strcmp(client->cpuname, rpmsg_get_cpuname(rdev)) == 0)
     {
       client->ept.priv = client;
+      rpmsg_set_priority(&client->ept, RPMSG_PRIO_RT);
       rpmsg_create_ept(&client->ept, rdev, REGULATOR_RPMSG_EPT_NAME,
                        RPMSG_ADDR_ANY, RPMSG_ADDR_ANY,
                        regulator_rpmsg_ept_cb, NULL);

Reply via email to