diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2012-08-07 11:10:12 +0800 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 13:58:18 -0400 |
commit | 0462566b1e3129b2920b63b62a653b70a1bc36fa (patch) | |
tree | 2abdae105df4107dd21a561eb8c157b09f41283f /drivers | |
parent | 109ec8c396eae4d54e14be61719184ec36704d15 (diff) | |
download | op-kernel-dev-0462566b1e3129b2920b63b62a653b70a1bc36fa.zip op-kernel-dev-0462566b1e3129b2920b63b62a653b70a1bc36fa.tar.gz |
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 <sonic.zhang@analog.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/bfin_sdh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c index a17dd73..56a1093 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; |