[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201021090434.16387-1-o.rempel@pengutronix.de>
Date: Wed, 21 Oct 2020 11:04:34 +0200
From: Oleksij Rempel <o.rempel@...gutronix.de>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Alexandru Ardelean <alexandru.ardelean@...log.com>
Cc: Oleksij Rempel <o.rempel@...gutronix.de>, kernel@...gutronix.de,
linux-kernel@...r.kernel.org, linux-input@...r.kernel.org,
David Jander <david@...tonic.nl>
Subject: [PATCH v1] Input: ads7846: do not overwrite spi->mode flags set by spi framework
Do not overwrite spi->mode flags set by spi framework, otherwise the
chip select polarity will get lost.
Signed-off-by: Oleksij Rempel <o.rempel@...gutronix.de>
---
drivers/input/touchscreen/ads7846.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 8fd7fc39c4fd..ea31956f3a90 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -1288,7 +1288,7 @@ static int ads7846_probe(struct spi_device *spi)
* may not. So we stick to very-portable 8 bit words, both RX and TX.
*/
spi->bits_per_word = 8;
- spi->mode = SPI_MODE_0;
+ spi->mode |= SPI_MODE_0;
err = spi_setup(spi);
if (err < 0)
return err;
--
2.28.0
Powered by blists - more mailing lists