You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/24 15:37:00 UTC

(nuttx) 03/08: I3C: fixed the send ccc cmd check condition error

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 9d566d4a9d1426c50a0a3e6741e9dc1955e9f2ae
Author: yangshuyong <ya...@xiaomi.com>
AuthorDate: Tue Mar 19 10:45:19 2024 +0800

    I3C: fixed the send ccc cmd check condition error
    
    Only affect the send ccc cmd in 3th driver
    
    Signed-off-by: yangshuyong <ya...@xiaomi.com>
---
 drivers/i3c/master.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c
index a251ca78e3..53aeb9b725 100644
--- a/drivers/i3c/master.c
+++ b/drivers/i3c/master.c
@@ -1270,7 +1270,7 @@ int i3c_master_send_ccc_cmd_locked(
     }
 
   if (master->init_done &&
-      nxmutex_is_locked(&master->bus.lock))
+      !nxmutex_is_locked(&master->bus.lock))
     {
       return -EINVAL;
     }