ar71xx: fix RB4xx CPLD SPI device mode setup
Commit af79fdbe4a
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>
This commit is contained in:
parent
c3a8b87773
commit
889272d92d
@ -279,7 +279,7 @@ static int rb4xx_cpld_probe(struct spi_device *spi)
|
|||||||
cpld->spi = spi_dev_get(spi);
|
cpld->spi = spi_dev_get(spi);
|
||||||
dev_set_drvdata(&spi->dev, cpld);
|
dev_set_drvdata(&spi->dev, cpld);
|
||||||
|
|
||||||
spi->mode = SPI_MODE_0;
|
spi->mode = SPI_MODE_0 | SPI_TX_DUAL;
|
||||||
spi->bits_per_word = 8;
|
spi->bits_per_word = 8;
|
||||||
err = spi_setup(spi);
|
err = spi_setup(spi);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user