|
@@ -493,7 +493,7 @@ static irqreturn_t mmc_omap_irq(int irq, void *dev_id)
|
|
/* Flush posted write */
|
|
/* Flush posted write */
|
|
OMAP_HSMMC_READ(host->base, STAT);
|
|
OMAP_HSMMC_READ(host->base, STAT);
|
|
|
|
|
|
- if (end_cmd || (status & CC))
|
|
|
|
|
|
+ if (end_cmd || ((status & CC) && host->cmd))
|
|
mmc_omap_cmd_done(host, host->cmd);
|
|
mmc_omap_cmd_done(host, host->cmd);
|
|
if (end_trans || (status & TC))
|
|
if (end_trans || (status & TC))
|
|
mmc_omap_xfer_done(host, data);
|
|
mmc_omap_xfer_done(host, data);
|