[PATCH 2/6] mmc: bcm2835: Increase max_blk_size to 1024

Stefan Wahren stefan.wahren at i2se.com
Sat Feb 11 14:48:32 PST 2017


In order to use the same max_blk_size like the sdhci-iproc does
we need to increase it to 1024 bytes. This results in a
little write performance gain for MMC:

Before: 13,8 MB/s
After: 14,0 MB/s

Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
---
 drivers/mmc/host/bcm2835.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c
index 1704082..bbb1084 100644
--- a/drivers/mmc/host/bcm2835.c
+++ b/drivers/mmc/host/bcm2835.c
@@ -1331,7 +1331,7 @@ int bcm2835_add_host(struct bcm2835_host *host)
 	mmc->max_segs = 128;
 	mmc->max_req_size = 524288;
 	mmc->max_seg_size = mmc->max_req_size;
-	mmc->max_blk_size = 512;
+	mmc->max_blk_size = 1024;
 	mmc->max_blk_count =  65535;
 
 	/* report supported voltage ranges */
-- 
1.7.9.5




More information about the linux-rpi-kernel mailing list