OSDN Git Service

staging: wfx: increase SPI bus frequency limit
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 17 Dec 2019 16:14:41 +0000 (16:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:55:56 +0000 (15:55 +0100)
The chip has now proven that it can run at 50MHz on any boards without
any problem.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-12-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/bus_spi.c

index ab0cda1..44fc42b 100644 (file)
@@ -183,7 +183,7 @@ static int wfx_spi_probe(struct spi_device *func)
        if (func->bits_per_word != 16 && func->bits_per_word != 8)
                dev_warn(&func->dev, "unusual bits/word value: %d\n",
                         func->bits_per_word);
-       if (func->max_speed_hz > 49000000)
+       if (func->max_speed_hz > 50000000)
                dev_warn(&func->dev, "%dHz is a very high speed\n",
                         func->max_speed_hz);