Messages in this thread Patch in this message | | | From | Irina Tirdea <> | Subject | [PATCH 24/26] mmc: sdhci: panic write: abort request in progress | Date | Tue, 23 Oct 2012 16:48:22 +0300 |
| |
From: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Irina Tirdea <irina.tirdea@intel.com> --- drivers/mmc/host/sdhci.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 496adc8..9a24417 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1351,6 +1351,11 @@ static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq) sdhci_lock_irqsave(host, flags); + if (mmc_am_panic_task(mmc) && host->mrq) { + host->mrq->cmd->error = -EILSEQ; + sdhci_sched_tasklet(host, finish); + } + WARN_ON(host->mrq != NULL); #ifndef SDHCI_USE_LEDS_CLASS -- 1.7.9.5
| |