]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: rzv2h-rspi: set TX FIFO threshold to 0
authorCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Mon, 1 Dec 2025 13:42:23 +0000 (15:42 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:38:33 +0000 (19:38 +0900)
commita886baaaa6e12a9b7d5a9687d11d3b895f1b87c9
treec9db53918675ef59bc7fb24c133dd73cda9f1725
parent6f9026b5a18acdf190d1622831b100aacfca0eb3
spi: rzv2h-rspi: set TX FIFO threshold to 0

In PIO mode we send data word-by-word, and wait for the received data
to be available after each sent word, making no use of the TX interrupt.

In DMA mode, we need to set the RX and TX FIFO thresholds to 0, as
described in the User Manual.

In preparation for implementing DMA support, set TX FIFO threshold to 0,
as RX FIFO threshold is already 0.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Link: https://patch.msgid.link/20251201134229.600817-8-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rzv2h-rspi.c