aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorWolfgang Muees <wolfgang.mues@auerswald.de>2010-03-05 16:43:42 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 14:26:43 -0500
commit9af13be2acac60ca5593e41a601d4a5b6bc35302 (patch)
tree5f73ff3f0a4dfbed2dc87e171d78df612f2b227d /drivers/mmc/host
parent86ee26f5b0a889bf7e9f6351bbf01516d0686461 (diff)
mmc: at91_mci: enable large data blocks
This patch is setting some max_ variables for the IO elevator, so the elevator will put requests for large data blocks to the driver. This is critical for a) speed and b) wear leveling of the flash chip controller: Otherwise the controller will treat the SD card badly with millions of single 4 KByte write commands. This will lead to a shorter life time for the SD cards. Signed-off-by: Wolfgang Muees <wolfgang.mues@auerswald.de> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Andrew Victor <avictor.za@gmail.com> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/at91_mci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c
index 818b4e75708a..3cd00c6f2584 100644
--- a/drivers/mmc/host/at91_mci.c
+++ b/drivers/mmc/host/at91_mci.c
@@ -934,6 +934,9 @@ static int __init at91_mci_probe(struct platform_device *pdev)
934 mmc->max_blk_size = MCI_MAXBLKSIZE; 934 mmc->max_blk_size = MCI_MAXBLKSIZE;
935 mmc->max_blk_count = MCI_BLKATONCE; 935 mmc->max_blk_count = MCI_BLKATONCE;
936 mmc->max_req_size = MCI_BUFSIZE; 936 mmc->max_req_size = MCI_BUFSIZE;
937 mmc->max_phys_segs = MCI_BLKATONCE;
938 mmc->max_hw_segs = MCI_BLKATONCE;
939 mmc->max_seg_size = MCI_BUFSIZE;
937 940
938 host = mmc_priv(mmc); 941 host = mmc_priv(mmc);
939 host->mmc = mmc; 942 host->mmc = mmc;