From: Sonic Zhang Date: Tue, 7 Aug 2012 03:10:12 +0000 (+0800) Subject: mmc: bfin_sdh: limit mmc DMA segment len to 1 for bf518. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0462566b1e3129b2920b63b62a653b70a1bc36fa;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git mmc: bfin_sdh: limit mmc DMA segment len to 1 for bf518. bf518 RSI dma doesn't work in array mode. Signed-off-by: Sonic Zhang Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c index a17dd7363ceb..56a10938b44a 100644 --- a/drivers/mmc/host/bfin_sdh.c +++ b/drivers/mmc/host/bfin_sdh.c @@ -462,7 +462,11 @@ static int __devinit sdh_probe(struct platform_device *pdev) } mmc->ops = &sdh_ops; +#if defined(CONFIG_BF54x) mmc->max_segs = 32; +#elif defined(CONFIG_BF51x) + mmc->max_segs = 1; +#endif mmc->max_seg_size = 1 << 16; mmc->max_blk_size = 1 << 11; mmc->max_blk_count = 1 << 11;