projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
spi: nuc900: Set SPI_LSB_FIRST for master->mode_bits if hw->pdata->lsb is true
author
Axel Lin
<axel.lin@ingics.com>
Mon, 20 Jan 2014 15:22:07 +0000
(23:22 +0800)
committer
Mark Brown
<broonie@linaro.org>
Tue, 4 Feb 2014 20:32:58 +0000
(20:32 +0000)
Otherwise, spi_setup() fails with unsupported mode bits message.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-nuc900.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-nuc900.c
b/drivers/spi/spi-nuc900.c
index 50406306bc209493152eca0a5b636811e30593d6..bae97ffec4b9952f10a1affc3ca3741d537e91af 100644
(file)
--- a/
drivers/spi/spi-nuc900.c
+++ b/
drivers/spi/spi-nuc900.c
@@
-361,6
+361,8
@@
static int nuc900_spi_probe(struct platform_device *pdev)
init_completion(&hw->done);
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
+ if (hw->pdata->lsb)
+ master->mode_bits |= SPI_LSB_FIRST;
master->num_chipselect = hw->pdata->num_cs;
master->bus_num = hw->pdata->bus_num;
hw->bitbang.master = hw->master;