source: trunk/target/linux/kirkwood/patches-3.3/002-mvsdio_delay.patch @ 31664

Last change on this file since 31664 was 31664, checked in by juhosg, 4 years ago

kirkwood: add 3.3 support

Based on the 3.2.9 patches by Luka Perkov <openwrt@…>

File size: 879 bytes
  • drivers/mmc/core/sd.c

    a b int mmc_sd_switch_hs(struct mmc_card *ca 
    389389                return -ENOMEM; 
    390390        } 
    391391 
     392        /* 
     393         * Some SDHC cards, notably those with a Sandisk SD controller 
     394         * (also found in Kingston products) need a bit of slack 
     395         * before successfully handling the SWITCH command.  So far, 
     396         * cards identifying themselves as "SD04G" and "SD08G" are 
     397         * affected 
     398         */ 
     399        udelay(1000); 
     400 
    392401        err = mmc_sd_switch(card, 1, 0, 1, status); 
    393402        if (err) 
    394403                goto out; 
  • drivers/mmc/core/core.c

    a b void mmc_set_data_timeout(struct mmc_dat 
    529529                         * The limit is really 250 ms, but that is 
    530530                         * insufficient for some crappy cards. 
    531531                         */ 
    532                         limit_us = 300000; 
     532                        limit_us = 500000; 
    533533                else 
    534                         limit_us = 100000; 
     534                        limit_us = 200000; 
    535535 
    536536                /* 
    537537                 * SDHC cards always use these fixed values. 
Note: See TracBrowser for help on using the repository browser.