From: Balaji T K <balajitk@ti.com>
To: linux-mmc@vger.kernel.org, cjb@laptop.org
Cc: linux-omap@vger.kernel.org, svenkatr@ti.com, balbi@ti.com,
Balaji T K <balajitk@ti.com>
Subject: [PATCH v3 3/3] mmc: omap_hsmmc: update error code for response_busy cmd
Date: Mon, 12 Nov 2012 18:36:44 +0530 [thread overview]
Message-ID: <1352725604-20390-4-git-send-email-balajitk@ti.com> (raw)
In-Reply-To: <1352725604-20390-1-git-send-email-balajitk@ti.com>
update error code to cmd->error for commands with response_busy and no data
Signed-off-by: Balaji T K <balajitk@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
---
drivers/mmc/host/omap_hsmmc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index d931e08..352e18e 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -980,8 +980,9 @@ static void hsmmc_command_incomplete(struct omap_hsmmc_host *host,
if (host->data) {
omap_hsmmc_reset_controller_fsm(host, SRD);
omap_hsmmc_dma_cleanup(host, err);
+ } else if (host->mrq && host->mrq->cmd) {
+ host->mrq->cmd->error = err;
}
-
}
static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status)
--
1.7.5.4
prev parent reply other threads:[~2012-11-12 13:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-09 14:41 [PATCH] mmc: omap_hsmmc: Fix Oops in case of data errors Balaji T K
2012-11-09 14:52 ` Felipe Balbi
2012-11-09 15:28 ` Balaji T K
2012-11-09 16:06 ` [PATCH v2 0/3] mmc: omap_hsmmc: fixes for irq error handler Balaji T K
2012-11-09 16:06 ` [PATCH v2 1/3] mmc: omap_hsmmc: Fix Oops in case of data errors Balaji T K
2012-11-09 16:39 ` Felipe Balbi
2012-11-09 16:06 ` [PATCH v2 2/3] mmc: omap_hsmmc: no reset of cmd state machine for DCRC Balaji T K
2012-11-09 16:39 ` Felipe Balbi
2012-11-09 16:06 ` [PATCH v2 3/3] mmc: omap_hsmmc: update error code for response_busy cmd Balaji T K
2012-11-09 16:40 ` Felipe Balbi
2012-11-12 13:06 ` [PATCH v3 0/3] mmc: omap_hsmmc: fixes for irq error handler Balaji T K
2012-11-12 13:06 ` [PATCH v3 1/3] mmc: omap_hsmmc: Fix Oops in case of data errors Balaji T K
2012-11-12 13:06 ` [PATCH v3 2/3] mmc: omap_hsmmc: no reset of cmd state machine for DCRC Balaji T K
2012-11-12 13:06 ` Balaji T K [this message]
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=1352725604-20390-4-git-send-email-balajitk@ti.com \
--to=balajitk@ti.com \
--cc=balbi@ti.com \
--cc=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=svenkatr@ti.com \
/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).