bcm27xx: update to latest patches from RPi foundation
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-5.4 / 950-0510-mmc-sdhci-Silence-MMC-warnings.patch
1 From c99941ee53a8c6fcc466a088f8bd7108f04824e5 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Fri, 6 Dec 2019 13:05:27 +0100
4 Subject: [PATCH] mmc: sdhci: Silence MMC warnings
5
6 When the MMC isn't plugged in, the driver will spam the console which is
7 pretty annoying when using NFS.
8
9 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
10 ---
11 drivers/mmc/host/sdhci.c | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14 --- a/drivers/mmc/host/sdhci.c
15 +++ b/drivers/mmc/host/sdhci.c
16 @@ -39,7 +39,7 @@
17 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
18
19 #define SDHCI_DUMP(f, x...) \
20 - pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
21 + pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
22
23 #define MAX_TUNING_LOOP 40
24
25 @@ -2754,7 +2754,7 @@ static void sdhci_timeout_timer(struct t
26 spin_lock_irqsave(&host->lock, flags);
27
28 if (host->cmd && !sdhci_data_line_cmd(host->cmd)) {
29 - pr_err("%s: Timeout waiting for hardware cmd interrupt.\n",
30 + pr_debug("%s: Timeout waiting for hardware cmd interrupt.\n",
31 mmc_hostname(host->mmc));
32 sdhci_dumpregs(host);
33
34 @@ -2776,7 +2776,7 @@ static void sdhci_timeout_data_timer(str
35
36 if (host->data || host->data_cmd ||
37 (host->cmd && sdhci_data_line_cmd(host->cmd))) {
38 - pr_err("%s: Timeout waiting for hardware interrupt.\n",
39 + pr_debug("%s: Timeout waiting for hardware interrupt.\n",
40 mmc_hostname(host->mmc));
41 sdhci_dumpregs(host);
42