diff options
author | Mark Brown <broonie@kernel.org> | 2016-01-11 11:48:29 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-11 11:48:29 -0500 |
commit | 9b17e80150f8c6300b49e5f073a9a28dae2299fb (patch) | |
tree | 2b2965f711a300c0770e863d03f2ae6e14b41390 | |
parent | 174c21163d83f730f7e0194d4682d5149946a7f8 (diff) | |
parent | 218e0b575ffe6de1c93249871b25bbf570fe1cb5 (diff) |
Merge remote-tracking branch 'spi/topic/sunxi' into spi-next
-rw-r--r-- | drivers/spi/spi-sun4i.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index fbb0a4d74e91..a6d936c68674 100644 --- a/drivers/spi/spi-sun4i.c +++ b/drivers/spi/spi-sun4i.c | |||
@@ -140,6 +140,9 @@ static void sun4i_spi_set_cs(struct spi_device *spi, bool enable) | |||
140 | reg &= ~SUN4I_CTL_CS_MASK; | 140 | reg &= ~SUN4I_CTL_CS_MASK; |
141 | reg |= SUN4I_CTL_CS(spi->chip_select); | 141 | reg |= SUN4I_CTL_CS(spi->chip_select); |
142 | 142 | ||
143 | /* We want to control the chip select manually */ | ||
144 | reg |= SUN4I_CTL_CS_MANUAL; | ||
145 | |||
143 | if (enable) | 146 | if (enable) |
144 | reg |= SUN4I_CTL_CS_LEVEL; | 147 | reg |= SUN4I_CTL_CS_LEVEL; |
145 | else | 148 | else |
@@ -222,9 +225,6 @@ static int sun4i_spi_transfer_one(struct spi_master *master, | |||
222 | else | 225 | else |
223 | reg |= SUN4I_CTL_DHB; | 226 | reg |= SUN4I_CTL_DHB; |
224 | 227 | ||
225 | /* We want to control the chip select manually */ | ||
226 | reg |= SUN4I_CTL_CS_MANUAL; | ||
227 | |||
228 | sun4i_spi_write(sspi, SUN4I_CTL_REG, reg); | 228 | sun4i_spi_write(sspi, SUN4I_CTL_REG, reg); |
229 | 229 | ||
230 | /* Ensure that we have a parent clock fast enough */ | 230 | /* Ensure that we have a parent clock fast enough */ |