Skip to content

Commit f669c28

Browse files
geertubroonie
authored andcommitted
spi: sh-msiof: Correct RX FIFO size for R-Car Gen3
According to the R-Car Gen3 Hardware Manual Errata for Rev 0.55 of September 28, 2017, the MSIOF receive FIFOs on R-Car Gen3 SoCs have room for 256 words of 32 bits. Note that this change has no actual impact on the behavior of the driver, as SPI_CONTROLLER_MUST_TX is set, and transfer size is currenty limited to the minimum of the transmit and receive FIFO sizes. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://patch.msgid.link/6f74508ea4681aa0b7c6bf6810eab026725e75a3.1747401908.git.geert+renesas@glider.be Signed-off-by: Mark Brown <[email protected]>
1 parent 1ab2c8c commit f669c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-sh-msiof.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ static const struct sh_msiof_chipdata rcar_gen3_data = {
11081108
.bits_per_word_mask = SPI_BPW_MASK(8) | SPI_BPW_MASK(16) |
11091109
SPI_BPW_MASK(24) | SPI_BPW_MASK(32),
11101110
.tx_fifo_size = 64,
1111-
.rx_fifo_size = 64,
1111+
.rx_fifo_size = 256,
11121112
.ctlr_flags = SPI_CONTROLLER_MUST_TX,
11131113
.min_div_pow = 1,
11141114
};
@@ -1117,7 +1117,7 @@ static const struct sh_msiof_chipdata rcar_r8a7795_data = {
11171117
.bits_per_word_mask = SPI_BPW_MASK(8) | SPI_BPW_MASK(16) |
11181118
SPI_BPW_MASK(24) | SPI_BPW_MASK(32),
11191119
.tx_fifo_size = 64,
1120-
.rx_fifo_size = 64,
1120+
.rx_fifo_size = 256,
11211121
.ctlr_flags = SPI_CONTROLLER_MUST_TX,
11221122
.min_div_pow = 1,
11231123
.flags = SH_MSIOF_FLAG_FIXED_DTDL_200,

0 commit comments

Comments
 (0)