Date:2009-12-01 12:37:38 (10 years 6 months ago)
Author:Javi Roman
Commit:d21755a9eca889af74ceeb0eeb6473d1906c35f3
Message:MMC delay patch from KeyStream

Files: drivers/mmc/core/core.c (2 diffs)
drivers/mmc/core/sdio_cis.c (2 diffs)

Change Details

drivers/mmc/core/core.c
706706     * This delay should be sufficient to allow the power supply
707707     * to reach the minimum voltage.
708708     */
709    mmc_delay(10);
709    mmc_delay(200);
710710
711711    if (host->f_min > 400000) {
712712        pr_warning("%s: Minimum clock frequency too high for "
...... 
722722     * This delay must be at least 74 clock sizes, or 1 ms, or the
723723     * time required to reach a stable voltage.
724724     */
725    mmc_delay(10);
725    mmc_delay(200);
726726}
727727
728728static void mmc_power_off(struct mmc_host *host)
drivers/mmc/core/sdio_cis.c
111111    card->cis.max_dtr = speed_val[(buf[3] >> 3) & 15] *
112112                speed_unit[buf[3] & 7];
113113
114    if(card->cis.max_dtr > 25000000 && card->cccr.sdio_vsn < SDIO_SDIO_REV_2_00)
115        card->cis.max_dtr = 25000000;
116
114117    return 0;
115118}
116119
...... 
123126    vsn = func->card->cccr.sdio_vsn;
124127    min_size = (vsn == SDIO_SDIO_REV_1_00) ? 28 : 42;
125128
129#if 0
126130    if (size < min_size || buf[0] != 1)
127131        return -EINVAL;
132#endif
128133
129134    /* TPLFE_MAX_BLK_SIZE */
130135    func->max_blksize = buf[12] | (buf[13] << 8);

Archive Download the corresponding diff file



interactive