diff options
Diffstat (limited to 'recipes-kernel/linux/files/0001-sdhci-fix-Timeout-error-messages.patch')
-rw-r--r-- | recipes-kernel/linux/files/0001-sdhci-fix-Timeout-error-messages.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/0001-sdhci-fix-Timeout-error-messages.patch b/recipes-kernel/linux/files/0001-sdhci-fix-Timeout-error-messages.patch new file mode 100644 index 0000000..9e42dbd --- /dev/null +++ b/recipes-kernel/linux/files/0001-sdhci-fix-Timeout-error-messages.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 34a06b51a1928ed1692da4fce9f2203dfd306648 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Maxin B. John" <maxin.john@enea.com> | ||
3 | Date: Tue, 22 Apr 2014 07:26:59 +0200 | ||
4 | Subject: [PATCH] sdhci: fix Timeout error messages | ||
5 | |||
6 | If the driver doesn't implement proper card detection, | ||
7 | we shouldn't flood the console with Timeout error messages | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Maxin B. John <maxin.john@enea.com> | ||
12 | --- | ||
13 | drivers/mmc/host/sdhci.c | 9 ++++++--- | ||
14 | 1 file changed, 6 insertions(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c | ||
17 | index 79db375..c77117c 100644 | ||
18 | --- a/drivers/mmc/host/sdhci.c | ||
19 | +++ b/drivers/mmc/host/sdhci.c | ||
20 | @@ -2149,10 +2149,13 @@ static void sdhci_timeout_timer(unsigned long data) | ||
21 | spin_lock_irqsave(&host->lock, flags); | ||
22 | |||
23 | if (host->mrq) { | ||
24 | - pr_err("%s: Timeout waiting for hardware " | ||
25 | + /* If the driver doesn't implement proper card detection, | ||
26 | + we shouldn't flood the console with Timeout error messages */ | ||
27 | + if (!(host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)) { | ||
28 | + pr_err("%s: Timeout waiting for hardware " | ||
29 | "interrupt.\n", mmc_hostname(host->mmc)); | ||
30 | - sdhci_dumpregs(host); | ||
31 | - | ||
32 | + sdhci_dumpregs(host); | ||
33 | + } | ||
34 | if (host->data) { | ||
35 | host->data->error = -ETIMEDOUT; | ||
36 | sdhci_finish_data(host); | ||
37 | -- | ||
38 | 1.7.10.4 | ||
39 | |||