From a7e56359a4af0ddd00511fd9b98720c7fc027b3e Mon Sep 17 00:00:00 2001 From: Alexander Oryshchenko Date: Wed, 24 Jan 2018 06:57:17 -0600 Subject: [PATCH] arch/arm/src/stm32/stm32_spi.c: Removed unnecessary (and incorrect) speed limitation --- arch/arm/src/stm32/stm32_spi.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/arm/src/stm32/stm32_spi.c b/arch/arm/src/stm32/stm32_spi.c index 71f6dbfb3a5..1be51d49c2f 100644 --- a/arch/arm/src/stm32/stm32_spi.c +++ b/arch/arm/src/stm32/stm32_spi.c @@ -1122,13 +1122,6 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency) uint16_t setbits; uint32_t actual; - /* Limit to max possible (if STM32_SPI_CLK_MAX is defined in board.h) */ - - if (frequency > STM32_SPI_CLK_MAX) - { - frequency = STM32_SPI_CLK_MAX; - } - /* Has the frequency changed? */ if (frequency != priv->frequency)