From: Vignesh R <vigneshr@ti.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Andreas Fenkart <afenkart@gmail.com>,
Tony Lindgren <tony@atomide.com>, NeilBrown <neilb@suse.de>,
Vignesh R <vigneshr@ti.com>,
linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 2/3] mmc: host: omap_hsmmc: Handle BADA, DEB and CEB interrupts
Date: Tue, 16 Jun 2015 16:07:18 +0530 [thread overview]
Message-ID: <1434451039-18195-3-git-send-email-vigneshr@ti.com> (raw)
In-Reply-To: <1434451039-18195-1-git-send-email-vigneshr@ti.com>
Sometimes BADA, DEB or CEB error interrupts occur when sd card is
unplugged during data transfer. These interrupts are currently ignored
by the interrupt handler. But, this results in card not being
recognised on subsequent insertion. This is because mmcqd is waiting
forever for the data transfer(for which error occurred) to complete.
Fix this, by reporting BADA, DEB, CEB errors to mmc-core as -EILSEQ, so
that the core can do appropriate handling.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
drivers/mmc/host/omap_hsmmc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index d0abdffb0d7c..fb4bfefd9250 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1068,7 +1068,8 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status)
}
if (status & (CTO_EN | DTO_EN))
hsmmc_command_incomplete(host, -ETIMEDOUT, end_cmd);
- else if (status & (CCRC_EN | DCRC_EN))
+ else if (status & (CCRC_EN | DCRC_EN | DEB_EN | CEB_EN |
+ BADA_EN))
hsmmc_command_incomplete(host, -EILSEQ, end_cmd);
if (status & ACE_EN) {
--
2.4.1
next prev parent reply other threads:[~2015-06-16 10:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-16 10:37 [PATCH 0/3] omap_hsmmc: Fix card enumeration failure on Vignesh R
2015-06-16 10:37 ` [PATCH 1/3] mmc: host: omap_hsmmc: Fix DTO and DCRC handling Vignesh R
2015-06-20 22:21 ` Andreas Fenkart
2015-06-16 10:37 ` Vignesh R [this message]
2015-06-20 22:22 ` [PATCH 2/3] mmc: host: omap_hsmmc: Handle BADA, DEB and CEB interrupts Andreas Fenkart
2015-06-16 10:37 ` [PATCH 3/3] mmc: host: omap_hsmmc: Add custom card detect irq handler Vignesh R
2015-06-20 22:45 ` Andreas Fenkart
2015-06-22 13:18 ` Vignesh R
2015-07-21 8:16 ` Andreas Fenkart
2015-07-22 7:31 ` Vignesh R
2015-07-06 6:12 ` [PATCH 0/3] omap_hsmmc: Fix card enumeration failure on Vignesh R
2015-07-11 10:25 ` R, Vignesh
2015-07-20 14:20 ` Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434451039-18195-3-git-send-email-vigneshr@ti.com \
--to=vigneshr@ti.com \
--cc=afenkart@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=neilb@suse.de \
--cc=tony@atomide.com \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).