From: Mark Brown Date: Thu, 19 Jul 2012 05:36:16 +0000 (+0900) Subject: spi/s3c64xx: Put the /CS GPIO into output mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=707214d097eb505fe067668838ae800260a064ba;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Kukjin Kim --- 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) } if (!spi_get_ctldata(spi)) { - err = gpio_request(cs->line, dev_name(&spi->dev)); + err = gpio_request_one(cs->line, GPIOF_OUT_INIT_HIGH, + dev_name(&spi->dev)); if (err) { dev_err(&spi->dev, "Failed to get /CS gpio [%d]: %d\n",