linux/drivers/staging/axis-fifo
Gabriel Shahrouzi e8b1d65f0a staging: axis-fifo: Correct handling of tx_fifo_depth for size validation
commit 2ca34b5087 upstream.

Remove erroneous subtraction of 4 from the total FIFO depth read from
device tree. The stored depth is for checking against total capacity,
not initial vacancy. This prevented writes near the FIFO's full size.

The check performed just before data transfer, which uses live reads of
the TDFV register to determine current vacancy, correctly handles the
initial Depth - 4 hardware state and subsequent FIFO fullness.

Fixes: 4a965c5f89 ("staging: add driver for Xilinx AXI-Stream FIFO v4.1 IP core")
Cc: stable@vger.kernel.org
Signed-off-by: Gabriel Shahrouzi <gshahrouzi@gmail.com>
Link: https://lore.kernel.org/r/20250419012937.674924-1-gshahrouzi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-05-18 08:24:51 +02:00
..
axis-fifo.c staging: axis-fifo: Correct handling of tx_fifo_depth for size validation 2025-05-18 08:24:51 +02:00
axis-fifo.txt staging: axis-fifo: avoid parsing ignored device tree properties 2019-11-03 13:09:01 +01:00
Kconfig staging: axis-fifo: add unspecified HAS_IOMEM dependency 2019-12-17 09:22:11 +01:00
Makefile staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
README staging: add driver for Xilinx AXI-Stream FIFO v4.1 IP core 2018-07-24 14:14:13 +02:00