提交 4ad0e4ca 编写于 作者: D David Lechner 提交者: Caspar Zhang

spi: spi-davinci: Don't error when SPI_CS_WORD and cs_gpio

commit f34ecdbd5661816ce8bbd7511f33181ffa8f4895 commit

This remove the check and subsequent return of error for the case when
a SPI device requires SPI_CS_WORD and is also configured to use a GPIO
for the CS line.

Commit a134cc414e86 ("spi: always use software fallback for SPI_CS_WORD
when using cs_gio") handles this case now, so this check is no longer
necessary.
Signed-off-by: NDavid Lechner <david@lechnology.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
Signed-off-by: NZou Cao <zoucao@linux.alibaba.com>
Reviewed-by: NBaoyou Xie <xie.baoyou@linux.alibaba.com>
上级 447e8ef7
...@@ -445,9 +445,6 @@ static int davinci_spi_setup(struct spi_device *spi) ...@@ -445,9 +445,6 @@ static int davinci_spi_setup(struct spi_device *spi)
if (internal_cs) { if (internal_cs) {
set_io_bits(dspi->base + SPIPC0, 1 << spi->chip_select); set_io_bits(dspi->base + SPIPC0, 1 << spi->chip_select);
} else if (spi->mode & SPI_CS_WORD) {
dev_err(&spi->dev, "SPI_CS_WORD can't be use with GPIO CS\n");
return -EINVAL;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册