]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i3c: master: svc: Flush FIFO before sending Dynamic Address Assignment(DAA)
authorFrank Li <Frank.Li@nxp.com>
Wed, 29 Jan 2025 16:22:50 +0000 (11:22 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 20 Feb 2025 22:20:28 +0000 (23:20 +0100)
commita892ee4cf22a50e1d6988d0464a9a421f3e5db2f
tree94e73bdbbce318cb4ebbf8ffb4e8259b7878cf1b
parenteffed5dac8f8b3db006c4971cdd592504afd1c5d
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 <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>
drivers/i3c/master/svc-i3c-master.c