Date:2010-06-27 22:09:02 (13 years 5 months ago)
Author:Lars C.
Commit:117a44ce885161f9adefaf25a9b1b40b72917a40
Message:mmc: jz4740: Only start timeout timeer when sending inital command

Previously it was also started when the stop command was sent.
Files: drivers/mmc/host/jz4740_mmc.c (2 diffs)

Change Details

drivers/mmc/host/jz4740_mmc.c
439439    writel(cmd->arg, host->base + JZ_REG_MMC_ARG);
440440    writel(cmdat, host->base + JZ_REG_MMC_CMDAT);
441441
442    set_bit(0, &host->waiting);
443442    jz4740_mmc_clock_enable(host, 1);
444    mod_timer(&host->timeout_timer, jiffies + 5*HZ);
445443}
446444
447445
...... 
569567
570568    writew(JZ_MMC_IRQ_END_CMD_RES, host->base + JZ_REG_MMC_IREG);
571569    jz4740_mmc_set_irq_enabled(host, JZ_MMC_IRQ_END_CMD_RES, true);
570
571    set_bit(0, &host->waiting);
572    mod_timer(&host->timeout_timer, jiffies + 5*HZ);
572573    jz4740_mmc_send_command(host, req->cmd);
573574}
574575

Archive Download the corresponding diff file



interactive