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/tifm_sd.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/tifm_sd.c')
-rw-r--r-- | drivers/mmc/tifm_sd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/tifm_sd.c b/drivers/mmc/tifm_sd.c index ce19b045ca6a..bdfad15371b8 100644 --- a/drivers/mmc/tifm_sd.c +++ b/drivers/mmc/tifm_sd.c | |||
@@ -886,7 +886,9 @@ static int tifm_sd_probe(struct tifm_dev *sock) | |||
886 | mmc->max_hw_segs = 1; | 886 | mmc->max_hw_segs = 1; |
887 | mmc->max_phys_segs = 1; | 887 | mmc->max_phys_segs = 1; |
888 | mmc->max_sectors = 127; | 888 | mmc->max_sectors = 127; |
889 | mmc->max_seg_size = mmc->max_sectors << 11; //2k maximum hw block length | 889 | //2k maximum hw block length |
890 | mmc->max_seg_size = mmc->max_sectors << 11; | ||
891 | mmc->max_blk_size = 2048; | ||
890 | sock->signal_irq = tifm_sd_signal_irq; | 892 | sock->signal_irq = tifm_sd_signal_irq; |
891 | rc = tifm_sd_initialize_host(host); | 893 | rc = tifm_sd_initialize_host(host); |
892 | 894 | ||