Skip to content

Commit 078a551

Browse files
DhruvaG2000broonie
authored andcommitted
spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits
Replace the SPI_TX_OCTAL flag that appeared two time with SPI_RX_OCTAL in the chain of '|' operators while assigning to mode_bits Fixes: 1b74dd6 ("spi: Add Socionext F_OSPI SPI flash controller driver") Reported-by: David Binderman <[email protected]> Link: https://lore.kernel.org/all/DB6P189MB0568F3BE9384315F5C8C1A3E9CA49@DB6P189MB0568.EURP189.PROD.OUTLOOK.COM/ Cc: [email protected] Signed-off-by: Dhruva Gole <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 152ac60 commit 078a551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-sn-f-ospi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ static int f_ospi_probe(struct platform_device *pdev)
611611
return -ENOMEM;
612612

613613
ctlr->mode_bits = SPI_TX_DUAL | SPI_TX_QUAD | SPI_TX_OCTAL
614-
| SPI_RX_DUAL | SPI_RX_QUAD | SPI_TX_OCTAL
614+
| SPI_RX_DUAL | SPI_RX_QUAD | SPI_RX_OCTAL
615615
| SPI_MODE_0 | SPI_MODE_1 | SPI_LSB_FIRST;
616616
ctlr->mem_ops = &f_ospi_mem_ops;
617617
ctlr->bus_num = -1;

0 commit comments

Comments
 (0)