i3c: master: adi: fix number of bytes written to fifo
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 24 Sep 2025 19:56:00 +0000 (21:56 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 28 Sep 2025 22:11:59 +0000 (00:11 +0200)
commit8a1f3fd1a89cd1d4acccb0181346ad212a275a69
tree76cb8a5663e8c6bb6ab0d5de80349ed6f4e310b6
parent649764145b70a0328fc020fe31fc80594761a707
i3c: master: adi: fix number of bytes written to fifo

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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202509190505.fKGvEJRa-lkp@intel.com/
Reviewed-by: Jorge Marques <jorge.marques@analog.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250924195600.122142-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/adi-i3c-master.c