diff options
author | Kurt Kanzenbach <kurt@linutronix.de> | 2017-11-13 08:47:21 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-11-16 12:01:08 +0000 |
commit | 00ac9562158e8541d60e91eb72aa9ed0674d4a6a (patch) | |
tree | 1f2286f03a65fe22a288de347fd2d12d090c8781 /drivers/spi/spi-fsl-dspi.c | |
parent | abbdb5ce31c21a4b3c3922c56030f3d487497933 (diff) | |
download | linux-stable-00ac9562158e8541d60e91eb72aa9ed0674d4a6a.tar.gz linux-stable-00ac9562158e8541d60e91eb72aa9ed0674d4a6a.tar.bz2 linux-stable-00ac9562158e8541d60e91eb72aa9ed0674d4a6a.zip |
spi: spi-fsl-dspi: add SPI_LSB_FIRST to driver capabilities
The driver as well as the controller support the SPI lsb first
mode. However, it's not possible to configure it e.g. when using
spidev. Adding this flag to mode_bits resolves the issue and lsb first
mode can be used.
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index f652f70cb8db..02d3ed7f2558 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -980,7 +980,7 @@ static int dspi_probe(struct platform_device *pdev) master->dev.of_node = pdev->dev.of_node; master->cleanup = dspi_cleanup; - master->mode_bits = SPI_CPOL | SPI_CPHA; + master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; master->bits_per_word_mask = SPI_BPW_MASK(4) | SPI_BPW_MASK(8) | SPI_BPW_MASK(16); |