Skip to content

Commit

Permalink
mmc: bfin_sdh: limit mmc DMA segment len to 1 for bf518.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sonic Zhang authored and Chris Ball committed Sep 4, 2012
1 parent 109ec8c commit 0462566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mmc/host/bfin_sdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0462566

Please sign in to comment.