SQUASH: spi: Demote SPI_CS_HIGH warning to KERN_DEBUG
authorPhil Elwell <phil@raspberrypi.com>
Fri, 1 May 2020 13:58:23 +0000 (14:58 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:55 +0000 (16:33 +0100)
This warning is unavoidable from a client's perspective and
doesn't indicate anything wrong (just surprising).

SQUASH with "spi: use_gpio_descriptor fixup moved to spi_setup"

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/spi/spi.c

index c7e4a47..bf511f2 100644 (file)
@@ -3046,8 +3046,8 @@ int spi_setup(struct spi_device *spi)
 
        if (ctlr->use_gpio_descriptors && ctlr->cs_gpiods &&
            ctlr->cs_gpiods[spi->chip_select] && !(spi->mode & SPI_CS_HIGH)) {
-               dev_warn(&spi->dev,
-                        "setup: forcing CS_HIGH (use_gpio_descriptors)\n");
+               dev_dbg(&spi->dev,
+                       "setup: forcing CS_HIGH (use_gpio_descriptors)\n");
                spi->mode |= SPI_CS_HIGH;
        }