summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-11 12:26:27 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-11 13:02:11 +0100
commitc3a8b87773b7045f20ec288ecf55b3d5af5000ba (patch)
tree57dce0eb3c5d64619d00d5b2e55cc93ffacc0791 /target/linux/ar71xx
parent15f4fbb7bdb21ff5ff52ecae3fa4140c5ea17187 (diff)
downloadmtk-20170518-c3a8b87773b7045f20ec288ecf55b3d5af5000ba.zip
mtk-20170518-c3a8b87773b7045f20ec288ecf55b3d5af5000ba.tar.gz
mtk-20170518-c3a8b87773b7045f20ec288ecf55b3d5af5000ba.tar.bz2
ar71xx: fix RB4xx SPI driver mode bits
Accept SPI_TX_DUAL in device mode to fix the CPLD driver Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
index d8c71fb..9175fc7 100644
--- a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
+++ b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
@@ -261,7 +261,7 @@ static int rb4xx_spi_setup(struct spi_device *spi)
struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master);
unsigned long flags;
- if (spi->mode & ~(SPI_CS_HIGH)) {
+ if (spi->mode & ~(SPI_CS_HIGH | SPI_TX_DUAL)) {
dev_err(&spi->dev, "mode %x not supported\n",
(unsigned) spi->mode);
return -EINVAL;