diff options
author | Andreas Larsson <andreas@gaisler.com> | 2013-02-15 10:52:22 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-04-07 05:07:54 -0400 |
commit | f482cd0ff506cd74c75edceec4b737c46c60cb12 (patch) | |
tree | 4c32912b88a502f72257251c692b1e6dad28aa78 | |
parent | e8beacbb85a5c1de1117400c5ddb450514a8372c (diff) |
spi/spi-fsl-spi: Make sure in spi_fsl_setup that chipselect becomes inactive
This is needed for a device in SPI_CS_HIGH mode that otherwise could start out
active for the first transaction.
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
-rw-r--r-- | drivers/spi/spi-fsl-spi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 9878911ee6af..1569f7defc73 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c | |||
@@ -387,6 +387,10 @@ static int fsl_spi_setup(struct spi_device *spi) | |||
387 | cs->hw_mode = hw_mode; /* Restore settings */ | 387 | cs->hw_mode = hw_mode; /* Restore settings */ |
388 | return retval; | 388 | return retval; |
389 | } | 389 | } |
390 | |||
391 | /* Initialize chipselect - might be active for SPI_CS_HIGH mode */ | ||
392 | fsl_spi_chipselect(spi, BITBANG_CS_INACTIVE); | ||
393 | |||
390 | return 0; | 394 | return 0; |
391 | } | 395 | } |
392 | 396 | ||