mmc: omap_hsmmc: Update error code for response_busy cmd
authorBalaji T K <balajitk@ti.com>
Mon, 19 Nov 2012 16:29:57 +0000 (21:59 +0530)
committerChris Ball <cjb@laptop.org>
Thu, 6 Dec 2012 18:54:56 +0000 (13:54 -0500)
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>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c

index 2d90da888c47215b76a5deb8d47bdddbceef0f8f..571cd80521c7336df718fd4ff35982931100864e 100644 (file)
@@ -981,8 +981,8 @@ 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)