From: Marek Vasut Date: Sun, 8 Apr 2012 18:50:18 +0000 (+0000) Subject: i.MX28: Lower the amount of blocks transfered in one DMA cycle X-Git-Tag: v2012.07-rc1~145^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7205905e7b9a483c412eefd2aea290a7eee567b;p=oweals%2Fu-boot.git i.MX28: Lower the amount of blocks transfered in one DMA cycle Some MMC cards, like my ancient 32.0MB SanDisk RS-MMC cards had issue if b_max was set to 0x40 and DMA was enabled. Lower this value to 0x20, which allows these cards to work too. Signed-off-by: Marek Vasut Cc: Stefano Babic Cc: Wolfgang Denk Cc: Detlev Zundel Cc: Fabio Estevam --- diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 35c6bdabb0..6572e9551b 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -406,7 +406,7 @@ int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int)) */ mmc->f_min = 400000; mmc->f_max = mxc_get_clock(MXC_SSP0_CLK + id) * 1000 / 2; - mmc->b_max = 0x40; + mmc->b_max = 0x20; mmc_register(mmc); return 0;