aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-19 01:36:16 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-07-19 01:36:16 -0400
commit707214d097eb505fe067668838ae800260a064ba (patch)
tree4fe97fcd6389432377dd3e5154dd2f278a52e783
parent49f3eacfcdab2e1cd381dc8e820bb6840787be00 (diff)
spi/s3c64xx: Put the /CS GPIO into output mode
No call was being made by the GPIO driver to put the GPIO into output mode meaning that the calls to gpio_set_value() which were being done were not valid. A similar issue appears to exist with the DT GPIO requests but as they appear to be being used for pinmux it's less clear to me that we want to configure them. Without this fix Cragganmore systems can't talk to their SPI devices. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--drivers/spi/spi-s3c64xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 0bec10b7e6c0..9d103163681e 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -894,7 +894,8 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
894 } 894 }
895 895
896 if (!spi_get_ctldata(spi)) { 896 if (!spi_get_ctldata(spi)) {
897 err = gpio_request(cs->line, dev_name(&spi->dev)); 897 err = gpio_request_one(cs->line, GPIOF_OUT_INIT_HIGH,
898 dev_name(&spi->dev));
898 if (err) { 899 if (err) {
899 dev_err(&spi->dev, 900 dev_err(&spi->dev,
900 "Failed to get /CS gpio [%d]: %d\n", 901 "Failed to get /CS gpio [%d]: %d\n",