[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aNS+qF9+DkTHrt8r@lizhi-Precision-Tower-5810>
Date: Thu, 25 Sep 2025 00:01:44 -0400
From: Frank Li <Frank.li@....com>
To: alexandre.belloni@...tlin.com
Cc: Jorge Marques <jorge.marques@...log.com>,
kernel test robot <lkp@...el.com>, linux-i3c@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i3c: master: adi: fix number of bytes written to fifo
On Wed, Sep 24, 2025 at 09:56:00PM +0200, alexandre.belloni@...tlin.com wrote:
> From: Alexandre Belloni <alexandre.belloni@...tlin.com>
>
> adi_i3c_master_wr_to_tx_fifo computes the maximum number of bytes that can be
> sent to the fifo but never makes use of it, actually limit the number of bytes
> sent.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202509190505.fKGvEJRa-lkp@intel.com/
> Signed-off-by: Alexandre Belloni <alexandre.belloni@...tlin.com>
> ---
Reviewed-by: Frank Li <Frank.Li@....com>
> drivers/i3c/master/adi-i3c-master.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i3c/master/adi-i3c-master.c b/drivers/i3c/master/adi-i3c-master.c
> index 18597ba1f1c3..82ac0b3d057a 100644
> --- a/drivers/i3c/master/adi-i3c-master.c
> +++ b/drivers/i3c/master/adi-i3c-master.c
> @@ -135,7 +135,7 @@ static void adi_i3c_master_wr_to_tx_fifo(struct adi_i3c_master *master,
>
> n = readl(master->regs + REG_SDO_FIFO_ROOM);
> m = min(n, nbytes);
> - i3c_writel_fifo(master->regs + REG_SDO_FIFO, buf, nbytes);
> + i3c_writel_fifo(master->regs + REG_SDO_FIFO, buf, m);
> }
>
> static void adi_i3c_master_rd_from_rx_fifo(struct adi_i3c_master *master,
> --
> 2.51.0
>
Powered by blists - more mailing lists