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 <nghiap@amperecomputing.com>
This commit is contained in:
Nghia Phung 2025-06-12 16:18:20 +07:00 committed by Benjamin Cabé
commit 0d0aea18fd

View file

@ -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 */