Skip to content

Commit a886baa

Browse files
Demon000broonie
authored andcommitted
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>
1 parent 6f9026b commit a886baa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-rzv2h-rspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ static int rzv2h_rspi_prepare_message(struct spi_controller *ctlr,
501501
writeb(0, rspi->base + RSPI_SSLP);
502502

503503
/* Setup FIFO thresholds */
504-
conf16 = FIELD_PREP(RSPI_SPDCR2_TTRG, rspi->info->fifo_size - 1);
504+
conf16 = FIELD_PREP(RSPI_SPDCR2_TTRG, 0);
505505
conf16 |= FIELD_PREP(RSPI_SPDCR2_RTRG, 0);
506506
writew(conf16, rspi->base + RSPI_SPDCR2);
507507

0 commit comments

Comments
 (0)