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>
This commit is contained in:
parent
15f4fbb7bd
commit
c3a8b87773
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ static int rb4xx_spi_setup(struct spi_device *spi)
|
||||||
struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master);
|
struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master);
|
||||||
unsigned long flags;
|
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",
|
dev_err(&spi->dev, "mode %x not supported\n",
|
||||||
(unsigned) spi->mode);
|
(unsigned) spi->mode);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue