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:
parent
f22e1018d5
commit
0d0aea18fd
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue