spi: stm32: remove SPI LOOP mode
authorCezary Gapinski <cezary.gapinski@gmail.com>
Mon, 24 Dec 2018 22:00:32 +0000 (23:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 18:24:30 +0000 (18:24 +0000)
This driver does not support SPI LOOP mode by configuration
in registers.

Signed-off-by: Cezary Gapinski <cezary.gapinski@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c

index f7056b767477a0cf6c082cba70b7243856edd9c8..b639be752fe68648f8710365ba323a49aa0e5bd8 100644 (file)
@@ -1143,7 +1143,7 @@ static int stm32_spi_probe(struct platform_device *pdev)
        master->auto_runtime_pm = true;
        master->bus_num = pdev->id;
        master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST |
-                           SPI_3WIRE | SPI_LOOP;
+                           SPI_3WIRE;
        master->bits_per_word_mask = stm32_spi_get_bpw_mask(spi);
        master->max_speed_hz = spi->clk_rate / SPI_MBR_DIV_MIN;
        master->min_speed_hz = spi->clk_rate / SPI_MBR_DIV_MAX;