[PATCH 1/1] i3c: master: svc: Flush FIFO before sending Dynamic Address Assignment(DAA)
Miquel Raynal
miquel.raynal at bootlin.com
Fri Jan 31 00:52:48 PST 2025
On 29/01/2025 at 11:22:50 -05, Frank Li <Frank.Li at nxp.com> wrote:
> 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 at nxp.com>
> ---
> Hotplug stress test find a wrong byte send out, this patch can resolve
> this issue although have not identify which operation cause a byte left in
> FIFO.
That's exactly what I understood from your commit log, I have mixed
feelings about the patch because it probably hides something bigger. Not
that I want to break users, but there is likely something else to do to
avoid it. Is there any chance you can check the content of the FIFO and
warn before flushing (at least while debugging)?
Anyway,
Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
Thanks,
Miquèl
More information about the linux-i3c
mailing list