|
@@ -1678,9 +1678,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
|
|
if ((xfer->tx_nbits == SPI_NBITS_QUAD) &&
|
|
if ((xfer->tx_nbits == SPI_NBITS_QUAD) &&
|
|
!(spi->mode & SPI_TX_QUAD))
|
|
!(spi->mode & SPI_TX_QUAD))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
- if ((spi->mode & SPI_3WIRE) &&
|
|
|
|
- (xfer->tx_nbits != SPI_NBITS_SINGLE))
|
|
|
|
- return -EINVAL;
|
|
|
|
}
|
|
}
|
|
/* check transfer rx_nbits */
|
|
/* check transfer rx_nbits */
|
|
if (xfer->rx_buf) {
|
|
if (xfer->rx_buf) {
|
|
@@ -1694,9 +1691,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
|
|
if ((xfer->rx_nbits == SPI_NBITS_QUAD) &&
|
|
if ((xfer->rx_nbits == SPI_NBITS_QUAD) &&
|
|
!(spi->mode & SPI_RX_QUAD))
|
|
!(spi->mode & SPI_RX_QUAD))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
- if ((spi->mode & SPI_3WIRE) &&
|
|
|
|
- (xfer->rx_nbits != SPI_NBITS_SINGLE))
|
|
|
|
- return -EINVAL;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|