Skip to content

Commit d49eea0

Browse files
Demon000broonie
authored andcommitted
spi: rzv2h-rspi: enable TX buffer empty interrupt
In preparation for implementing DMA support, enable the transmit buffer empty interrupt, which is necessary for DMA to write more data to the FIFO. This does not affect the PIO mode as we do not even request the TX interrupt line. Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com> Link: https://patch.msgid.link/20251201134229.600817-9-cosmin-gabriel.tanislav.xa@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent a886baa commit d49eea0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/spi/spi-rzv2h-rspi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
/* Register SPCR */
3838
#define RSPI_SPCR_BPEN BIT(31)
3939
#define RSPI_SPCR_MSTR BIT(30)
40+
#define RSPI_SPCR_SPTIE BIT(20)
4041
#define RSPI_SPCR_SPRIE BIT(17)
4142
#define RSPI_SPCR_SCKASE BIT(12)
4243
#define RSPI_SPCR_SPE BIT(0)
@@ -474,6 +475,9 @@ static int rzv2h_rspi_prepare_message(struct spi_controller *ctlr,
474475
/* SPI receive buffer full interrupt enable */
475476
conf32 |= RSPI_SPCR_SPRIE;
476477

478+
/* SPI transmit buffer empty interrupt enable */
479+
conf32 |= RSPI_SPCR_SPTIE;
480+
477481
/* Bypass synchronization circuit */
478482
conf32 |= FIELD_PREP(RSPI_SPCR_BPEN, rspi->use_pclk);
479483

0 commit comments

Comments
 (0)