Commit
af79fdbe4af3 changed the code to use tx_nbits for dual SPI tx
transfers, however the SPI stack only allows this when the device mode
includes the relevant bit as well
Signed-off-by: Felix Fietkau <nbd@nbd.name>
cpld->spi = spi_dev_get(spi);
dev_set_drvdata(&spi->dev, cpld);
cpld->spi = spi_dev_get(spi);
dev_set_drvdata(&spi->dev, cpld);
- spi->mode = SPI_MODE_0;
+ spi->mode = SPI_MODE_0 | SPI_TX_DUAL;
spi->bits_per_word = 8;
err = spi_setup(spi);
if (err) {
spi->bits_per_word = 8;
err = spi_setup(spi);
if (err) {