Commit 6962b055 authored by Cezary Gapinski's avatar Cezary Gapinski Committed by Mark Brown

spi: stm32: remove SPI LOOP mode

This driver does not support SPI LOOP mode by configuration
in registers.
Signed-off-by: default avatarCezary Gapinski <cezary.gapinski@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d6cea11b
...@@ -1143,7 +1143,7 @@ static int stm32_spi_probe(struct platform_device *pdev) ...@@ -1143,7 +1143,7 @@ static int stm32_spi_probe(struct platform_device *pdev)
master->auto_runtime_pm = true; master->auto_runtime_pm = true;
master->bus_num = pdev->id; master->bus_num = pdev->id;
master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST | 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->bits_per_word_mask = stm32_spi_get_bpw_mask(spi);
master->max_speed_hz = spi->clk_rate / SPI_MBR_DIV_MIN; master->max_speed_hz = spi->clk_rate / SPI_MBR_DIV_MIN;
master->min_speed_hz = spi->clk_rate / SPI_MBR_DIV_MAX; master->min_speed_hz = spi->clk_rate / SPI_MBR_DIV_MAX;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment