[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z5z21pk3M6KengFv@lizhi-Precision-Tower-5810>
Date: Fri, 31 Jan 2025 11:14:14 -0500
From: Frank Li <Frank.li@....com>
To: Miquel Raynal <miquel.raynal@...tlin.com>
Cc: Conor Culhane <conor.culhane@...vaco.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
"moderated list:SILVACO I3C DUAL-ROLE MASTER" <linux-i3c@...ts.infradead.org>,
open list <linux-kernel@...r.kernel.org>, imx@...ts.linux.dev
Subject: Re: [PATCH 1/1] i3c: master: svc: Flush FIFO before sending Dynamic
Address Assignment(DAA)
On Fri, Jan 31, 2025 at 09:52:48AM +0100, Miquel Raynal wrote:
> On 29/01/2025 at 11:22:50 -05, Frank Li <Frank.Li@....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@....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)?
Yes, it is random data. We find this problem at some month ago. Still not
identify why some data left in FIFO. Because it only one byte in FIFO, it
hard to find pattern to identify where.
Frank
>
> Anyway,
>
> Reviewed-by: Miquel Raynal <miquel.raynal@...tlin.com>
>
> Thanks,
> Miquèl
Powered by blists - more mailing lists