Skip to content

Commit 81172fe

Browse files
nxpfranklismb49
authored andcommitted
i3c: master: svc: Flush FIFO before sending Dynamic Address Assignment(DAA)
BugLink: https://bugs.launchpad.net/bugs/2115678 [ Upstream commit a892ee4cf22a50e1d6988d0464a9a421f3e5db2f ] 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 <Frank.Li@nxp.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20250129162250.3629189-1-Frank.Li@nxp.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
1 parent 59b8823 commit 81172fe

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
@@ -899,6 +899,8 @@ static int svc_i3c_master_do_daa_locked(struct svc_i3c_master *master,
899899
u32 reg;
900900
int ret, i;
901901

902+
svc_i3c_master_flush_fifo(master);
903+
902904
while (true) {
903905
/* clean SVC_I3C_MINT_IBIWON w1c bits */
904906
writel(SVC_I3C_MINT_IBIWON, master->regs + SVC_I3C_MSTATUS);

0 commit comments

Comments
 (0)