]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
mmc: host: omap_hsmmc: reset cmd line on ceb error
authorRavikumar Kattekola <rk@ti.com>
Mon, 30 Jan 2017 10:11:56 +0000 (15:41 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:54 +0000 (13:20 +0100)
When CEB (command end bit error) occurs
reset CMD line to avoid system ending up in
erroneous state.
While command line is reset for CTO and CCRC errors,
it's not done for CEB error. Fix it here.

Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c

index ad11c4cc12eddc65c04908597ccfa6f162cc4cd4..0ee56505494ee8ce96ef112d1874be32d9c60291 100644 (file)
@@ -1162,7 +1162,7 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status)
        if (status & ERR_EN) {
                omap_hsmmc_dbg_report_irq(host, status);
 
-               if (status & (CTO_EN | CCRC_EN))
+               if (status & (CTO_EN | CCRC_EN | CEB_EN))
                        end_cmd = 1;
                if (host->data || host->response_busy) {
                        end_trans = !end_cmd;