Re: [PATCH 1/1] i3c: master: svc: Flush FIFO before sending Dynamic Address Assignment(DAA)
From: Miquel Raynal
Date: Fri Jan 31 2025 - 03:53:06 EST
On 29/01/2025 at 11:22:50 -05, Frank Li <Frank.Li@xxxxxxx> 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@xxxxxxx>
> ---
> 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@xxxxxxxxxxx>
Thanks,
Miquèl