diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2006-11-21 11:54:23 -0500 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-02-04 14:54:10 -0500 |
commit | fe4a3c7a20f14d86022a8132adbf6ddb98e7197c (patch) | |
tree | 0719b8eb2d8c04c286095365ebff3d29285a5796 /drivers/mmc/imxmmc.c | |
parent | dba4accab17bd2e2e09088f746257a8c14af1cc2 (diff) |
mmc: Allow host drivers to specify a max block size
Most controllers have an upper limit on the block size. Allow the host
drivers to specify this and make sure we avoid hitting this limit.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/imxmmc.c')
-rw-r--r-- | drivers/mmc/imxmmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/imxmmc.c b/drivers/mmc/imxmmc.c index bfb9ff693208..2107f8a8605e 100644 --- a/drivers/mmc/imxmmc.c +++ b/drivers/mmc/imxmmc.c | |||
@@ -960,6 +960,7 @@ static int imxmci_probe(struct platform_device *pdev) | |||
960 | mmc->max_phys_segs = 64; | 960 | mmc->max_phys_segs = 64; |
961 | mmc->max_sectors = 64; /* default 1 << (PAGE_CACHE_SHIFT - 9) */ | 961 | mmc->max_sectors = 64; /* default 1 << (PAGE_CACHE_SHIFT - 9) */ |
962 | mmc->max_seg_size = 64*512; /* default PAGE_CACHE_SIZE */ | 962 | mmc->max_seg_size = 64*512; /* default PAGE_CACHE_SIZE */ |
963 | mmc->max_blk_size = 2048; | ||
963 | 964 | ||
964 | host = mmc_priv(mmc); | 965 | host = mmc_priv(mmc); |
965 | host->mmc = mmc; | 966 | host->mmc = mmc; |