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

mmc: pxamci: set proper block capabilities according to PXA flavor

From PXA27x, it is possible to do 2048-byte block transfers.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

authored by

Nicolas Pitre and committed by
Pierre Ossman
fe2dc44e 81ab570f

+2 -2
+2 -2
drivers/mmc/host/pxamci.c
··· 444 444 mmc->max_seg_size = PAGE_SIZE; 445 445 446 446 /* 447 - * Block length register is 10 bits. 447 + * Block length register is only 10 bits before PXA27x. 448 448 */ 449 - mmc->max_blk_size = 1023; 449 + mmc->max_blk_size = (cpu_is_pxa21x() || cpu_is_pxa25x()) ? 1023 : 2048; 450 450 451 451 /* 452 452 * Block count register is 16 bits.