lkml.org 
[lkml]   [2009]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 25/32] omap_hsmmc: cater for weird CMD6 behaviour
    From 4ad1f699fad1f7132e5a6a7ad1a2a433accb88d4 Mon Sep 17 00:00:00 2001
    From: Adrian Hunter <adrian.hunter@nokia.com>
    Date: Sat, 16 May 2009 10:05:40 +0300
    Subject: [PATCH] omap_hsmmc: cater for weird CMD6 behaviour

    Sometimes the controller unexpectedly produces a TC (transfer
    complete) interrupt before the CC (command complete) interrupt for
    command 6 (SWITCH). This is a problem because the CC interrupt
    can get mixed up with the next request. Add a hack for CMD6.

    Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
    ---
    drivers/mmc/host/omap_hsmmc.c | 7 +++++++
    1 files changed, 7 insertions(+), 0 deletions(-)

    diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
    index 315d1df..28563d6 100644
    --- a/drivers/mmc/host/omap_hsmmc.c
    +++ b/drivers/mmc/host/omap_hsmmc.c
    @@ -474,6 +474,13 @@ mmc_omap_xfer_done(struct mmc_omap_host *host, struct mmc_data *data)
    if (!data) {
    struct mmc_request *mrq = host->mrq;

    + /* TC before CC from CMD6 - don't know why, but it happens */
    + if (host->cmd && host->cmd->opcode == 6 &&
    + host->response_busy) {
    + host->response_busy = 0;
    + return;
    + }
    +
    host->mrq = NULL;
    mmc_request_done(host->mmc, mrq);
    return;
    --
    1.5.6.3


    \
     
     \ /
      Last update: 2009-07-10 15:03    [W:0.023 / U:0.752 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site