Skip to content

Commit 5302e1f

Browse files
chintingkuobroonie
authored andcommitted
spi: aspeed: Fix typo in mode_bits field for AST2600 platform
Both quad SPI TX and RX modes can be supported on AST2600. Correct typo in mode_bits field in both ast2600_fmc_data and ast2600_spi_data structs. Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Link: https://lore.kernel.org/r/20221005083209.222272-1-chin-ting_kuo@aspeedtech.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent b25fe93 commit 5302e1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/spi/spi-aspeed-smc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ static const struct aspeed_spi_data ast2500_spi_data = {
11631163
static const struct aspeed_spi_data ast2600_fmc_data = {
11641164
.max_cs = 3,
11651165
.hastype = false,
1166-
.mode_bits = SPI_RX_QUAD | SPI_RX_QUAD,
1166+
.mode_bits = SPI_RX_QUAD | SPI_TX_QUAD,
11671167
.we0 = 16,
11681168
.ctl0 = CE0_CTRL_REG,
11691169
.timing = CE0_TIMING_COMPENSATION_REG,
@@ -1178,7 +1178,7 @@ static const struct aspeed_spi_data ast2600_fmc_data = {
11781178
static const struct aspeed_spi_data ast2600_spi_data = {
11791179
.max_cs = 2,
11801180
.hastype = false,
1181-
.mode_bits = SPI_RX_QUAD | SPI_RX_QUAD,
1181+
.mode_bits = SPI_RX_QUAD | SPI_TX_QUAD,
11821182
.we0 = 16,
11831183
.ctl0 = CE0_CTRL_REG,
11841184
.timing = CE0_TIMING_COMPENSATION_REG,

0 commit comments

Comments
 (0)