From 0d0aea18fd5e2f76c95b5970b7a86dd9c14ff400 Mon Sep 17 00:00:00 2001 From: Nghia Phung Date: Thu, 12 Jun 2025 16:18:20 +0700 Subject: [PATCH] drivers: i3c: Handle Hotjoin completion When Hotjoin complete and dynamic address is assigned to target, INTR_DYN_ADDR_ASSGN_STAT interrupt will be triggered, we can use sem_hj to notify dw_i3c_target_ibi_raise_hj() about Hotjoin completion Signed-off-by: Nghia Phung --- drivers/i3c/i3c_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/i3c_dw.c b/drivers/i3c/i3c_dw.c index 415cb7731ea..143eeeb6637 100644 --- a/drivers/i3c/i3c_dw.c +++ b/drivers/i3c/i3c_dw.c @@ -1401,7 +1401,7 @@ static int i3c_dw_irq(const struct device *dev) } /* DA has been assigned, could happen after a IBI HJ request */ if (status & INTR_DYN_ADDR_ASSGN_STAT) { - /* TODO: handle IBI HJ with semaphore */ + k_sem_give(&data->sem_hj); sys_write32(INTR_DYN_ADDR_ASSGN_STAT, config->regs + INTR_STATUS); } #endif /* CONFIG_I3C_USE_IBI */