Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mxcmmc: fixed max_seg_size value on initialization

This unpleasant typo appeared while porting the driver from Freescale
original sources, where anyone can easily find the correct version.

Current incorrect version potentially can influence segment and merge
handling in block subsystem via MMC request queue settings.

Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Vladimir Zapolskiy and committed by
Linus Torvalds
d759c374 51ea3f6a

+1 -1
+1 -1
drivers/mmc/host/mxcmmc.c
··· 708 708 mmc->max_blk_size = 2048; 709 709 mmc->max_blk_count = 65535; 710 710 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; 711 - mmc->max_seg_size = mmc->max_seg_size; 711 + mmc->max_seg_size = mmc->max_req_size; 712 712 713 713 host = mmc_priv(mmc); 714 714 host->base = ioremap(r->start, resource_size(r));