0225f7b95ace6be1b7f587475d851e794e4c5042
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0697-SQUASH-spi-Demote-SPI_CS_HIGH-warning-to-KERN_DEBUG.patch
1 From 4172a6bd7e4afada99911947a335d47e94802be5 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 1 May 2020 14:58:23 +0100
4 Subject: [PATCH] SQUASH: spi: Demote SPI_CS_HIGH warning to KERN_DEBUG
5
6 This warning is unavoidable from a client's perspective and
7 doesn't indicate anything wrong (just surprising).
8
9 SQUASH with "spi: use_gpio_descriptor fixup moved to spi_setup"
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
12 ---
13 drivers/spi/spi.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 --- a/drivers/spi/spi.c
17 +++ b/drivers/spi/spi.c
18 @@ -3065,8 +3065,8 @@ int spi_setup(struct spi_device *spi)
19
20 if (ctlr->use_gpio_descriptors && ctlr->cs_gpiods &&
21 ctlr->cs_gpiods[spi->chip_select] && !(spi->mode & SPI_CS_HIGH)) {
22 - dev_warn(&spi->dev,
23 - "setup: forcing CS_HIGH (use_gpio_descriptors)\n");
24 + dev_dbg(&spi->dev,
25 + "setup: forcing CS_HIGH (use_gpio_descriptors)\n");
26 spi->mode |= SPI_CS_HIGH;
27 }
28