diff options
author | Ken Sumrall <ksumrall@android.com> | 2011-10-25 18:16:58 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-02-14 11:26:24 -0800 |
commit | 789f42190adca8dd4d8e9e2ac4d4e124d63295a5 (patch) | |
tree | 05d2ec402b808794da158151aa9366d745d534fa /drivers | |
parent | 3663054dcf6f6bed472d4f7fb05d1d3588d9638f (diff) |
mmc: block: Improve logging of handling emmc timeouts
Add some logging to make it clear just how the emmc timeout
was handled.
Change-Id: Id33fd28d8b9778dc4e85db829e2637a328eddab4
Signed-off-by: Ken Sumrall <ksumrall@android.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/card/block.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index dc638ccd99b..0a14014c170 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -657,18 +657,22 @@ static int mmc_blk_cmd_error(struct request *req, const char *name, int error, req->rq_disk->disk_name, "timed out", name, status); /* If the status cmd initially failed, retry the r/w cmd */ - if (!status_valid) + if (!status_valid) { + pr_err("%s: status not valid, retrying timeout\n", req->rq_disk->disk_name); return ERR_RETRY; - + } /* * If it was a r/w cmd crc error, or illegal command * (eg, issued in wrong state) then retry - we should * have corrected the state problem above. */ - if (status & (R1_COM_CRC_ERROR | R1_ILLEGAL_COMMAND)) + if (status & (R1_COM_CRC_ERROR | R1_ILLEGAL_COMMAND)) { + pr_err("%s: command error, retrying timeout\n", req->rq_disk->disk_name); return ERR_RETRY; + } /* Otherwise abort the command */ + pr_err("%s: not retrying timeout\n", req->rq_disk->disk_name); return ERR_ABORT; default: |