aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-11 10:42:04 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-11 13:02:11 +0100
commit889272d92db689fd9c910243635e44c9d8323095 (patch)
treefa9ab23d423bce68caea3d2623d602a58e78892f /target/linux
parentc3a8b87773b7045f20ec288ecf55b3d5af5000ba (diff)
downloadupstream-889272d92db689fd9c910243635e44c9d8323095.tar.gz
upstream-889272d92db689fd9c910243635e44c9d8323095.tar.bz2
upstream-889272d92db689fd9c910243635e44c9d8323095.zip
ar71xx: fix RB4xx CPLD SPI device mode setup
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>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/drivers/spi/spi-rb4xx-cpld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx-cpld.c b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx-cpld.c
index f6ec350525..0534c7c374 100644
--- a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx-cpld.c
+++ b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx-cpld.c
@@ -279,7 +279,7 @@ static int rb4xx_cpld_probe(struct spi_device *spi)
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) {