Skip to content

Commit a892ee4

Browse files
nxpfranklialexandrebelloni
authored andcommitted
i3c: master: svc: Flush FIFO before sending Dynamic Address Assignment(DAA)
Ensure the FIFO is empty before issuing the DAA command to prevent incorrect command data from being sent. Align with other data transfers, such as svc_i3c_master_start_xfer_locked(), which flushes the FIFO before sending a command. Signed-off-by: Frank Li <[email protected]> Reviewed-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent effed5d commit a892ee4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/i3c/master/svc-i3c-master.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,8 @@ static int svc_i3c_master_do_daa_locked(struct svc_i3c_master *master,
892892
u32 reg;
893893
int ret, i;
894894

895+
svc_i3c_master_flush_fifo(master);
896+
895897
while (true) {
896898
/* clean SVC_I3C_MINT_IBIWON w1c bits */
897899
writel(SVC_I3C_MINT_IBIWON, master->regs + SVC_I3C_MSTATUS);

0 commit comments

Comments
 (0)