diff options
author | John Crispin <john@openwrt.org> | 2016-02-25 10:14:05 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2016-02-25 10:14:05 +0000 |
commit | 0834f9f07631a8857a96614e37cb21e1dc84ffb4 (patch) | |
tree | c62e777de69d8397ed7870991bc46d5648a20046 /target/linux/brcm2708/patches-4.1/0130-bcm2835-sdhost-Ignore-CRC7-for-MMC-CMD1.patch | |
parent | b3dc9566a46efa67951ff6ae28e4397da9db92af (diff) | |
download | mtk-20170518-0834f9f07631a8857a96614e37cb21e1dc84ffb4.zip mtk-20170518-0834f9f07631a8857a96614e37cb21e1dc84ffb4.tar.gz mtk-20170518-0834f9f07631a8857a96614e37cb21e1dc84ffb4.tar.bz2 |
brcm2708: remove linux 4.1 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 48766
Diffstat (limited to 'target/linux/brcm2708/patches-4.1/0130-bcm2835-sdhost-Ignore-CRC7-for-MMC-CMD1.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.1/0130-bcm2835-sdhost-Ignore-CRC7-for-MMC-CMD1.patch | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/target/linux/brcm2708/patches-4.1/0130-bcm2835-sdhost-Ignore-CRC7-for-MMC-CMD1.patch b/target/linux/brcm2708/patches-4.1/0130-bcm2835-sdhost-Ignore-CRC7-for-MMC-CMD1.patch deleted file mode 100644 index ad33e8d..0000000 --- a/target/linux/brcm2708/patches-4.1/0130-bcm2835-sdhost-Ignore-CRC7-for-MMC-CMD1.patch +++ /dev/null @@ -1,64 +0,0 @@ -From 30409c7d87c47a0a10d19cb87ca5ed0c2b1adca7 Mon Sep 17 00:00:00 2001 -From: Phil Elwell <phil@raspberrypi.org> -Date: Mon, 20 Jul 2015 17:32:18 +0100 -Subject: [PATCH 130/222] bcm2835-sdhost: Ignore CRC7 for MMC CMD1 - -It seems that the sdhost interface returns CRC7 errors for CMD1, -which is the MMC-specific SEND_OP_COND. Returning these errors to -the MMC layer causes a downward spiral, but ignoring them seems -to be harmless. ---- - drivers/mmc/host/bcm2835-sdhost.c | 39 +++++++++++++++++++++++---------------- - 1 file changed, 23 insertions(+), 16 deletions(-) - ---- a/drivers/mmc/host/bcm2835-sdhost.c -+++ b/drivers/mmc/host/bcm2835-sdhost.c -@@ -959,25 +959,32 @@ static void bcm2835_sdhost_finish_comman - mmc_hostname(host->mmc), sdcmd, sdhsts, - bcm2835_sdhost_read(host, SDEDM)); - -- if (sdhsts & SDHSTS_CMD_TIME_OUT) { -- switch (host->cmd->opcode) { -- case 5: case 52: case 53: -- /* Don't warn about SDIO commands */ -- break; -- default: -- pr_err("%s: command timeout\n", -+ if ((sdhsts & SDHSTS_CRC7_ERROR) && -+ (host->cmd->opcode == 1)) { -+ if (host->debug) -+ pr_info("%s: ignoring CRC7 error for CMD1\n", -+ mmc_hostname(host->mmc)); -+ } else { -+ if (sdhsts & SDHSTS_CMD_TIME_OUT) { -+ switch (host->cmd->opcode) { -+ case 5: case 52: case 53: -+ /* Don't warn about SDIO commands */ -+ break; -+ default: -+ pr_err("%s: command timeout\n", -+ mmc_hostname(host->mmc)); -+ break; -+ } -+ host->cmd->error = -ETIMEDOUT; -+ } else { -+ pr_err("%s: unexpected command error\n", - mmc_hostname(host->mmc)); -- break; -+ bcm2835_sdhost_dumpregs(host); -+ host->cmd->error = -EIO; - } -- host->cmd->error = -ETIMEDOUT; -- } else { -- pr_err("%s: unexpected command error\n", -- mmc_hostname(host->mmc)); -- bcm2835_sdhost_dumpregs(host); -- host->cmd->error = -EIO; -+ tasklet_schedule(&host->finish_tasklet); -+ return; - } -- tasklet_schedule(&host->finish_tasklet); -- return; - } - - if (host->cmd->flags & MMC_RSP_PRESENT) { |