spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits
Subsystems (2)
PATCH 1/1 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 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver")
Reported-by David Binderman <[email protected]>
Signed-off-by Dhruva Gole <[email protected]>
--- drivers/spi/spi-sn-f-ospi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-sn-f-ospi.c +1 -1
@@ -611,7 +611,7 @@ static int f_ospi_probe(struct platform_device *pdev)return -ENOMEM ; ctlr->mode_bits =SPI_TX_DUAL |SPI_TX_QUAD |SPI_TX_OCTAL - |SPI_RX_DUAL |SPI_RX_QUAD |SPI_TX_OCTAL + |SPI_RX_DUAL |SPI_RX_QUAD |SPI_RX_OCTAL |SPI_MODE_0 |SPI_MODE_1 |SPI_LSB_FIRST ; ctlr->mem_ops = &f_ospi_mem_ops; ctlr->bus_num =-1 ;
Signature · 1 line
2.25.1
Forgot to add the correct lists in CC, please ignore this email, I am re-sending.
Quoted 11 lines · Dhruva Gole
Replace the
SPI_TX_OCTALflag that appeared two time withSPI_RX_OCTALin the chain of '|' operators while assigning tomode_bitsFixes 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver")Reported-by David Binderman <[email protected]>Signed-off-by Dhruva Gole <[email protected]>---
[...]
Sorry for the spam.
Signature · 2 lines
Thanks and Regards, Dhruva Gole