]> git.baikalelectronics.ru Git - kernel.git/commit
davinci: mmc: pass number of SG segments as platform data
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>
Wed, 26 May 2010 21:41:49 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:39 +0000 (09:12 -0700)
commitbcf59d585116e6d854f0882b13742c3bb8fed1d7
tree69bda961b3624d9a783f4ee1b52e973d0b9df507
parent730cb1bf62cc63291bbe46f5747cce3d89a54296
davinci: mmc: pass number of SG segments as platform data

On some platforms like DM355, the number of EDMA parameter slots available
for EDMA_SLOT_ANY usage are few.  In such cases, if MMC/SD uses 16 slots
for each instance of MMC controller, then the number of slots available
for other modules will be very few.

By passing the number of EDMA slots to be used in MMC driver from platform
data, EDMA slots available for other purposes can be controlled.

Most of the platforms will not use this platform data variable.  But on
DM355, as the number of EDMA resources available is limited, the number of
scatter- gather segments used inside the MMC driver can be 8 (passed as
platform data) instead of 16.  On DM355, when the number of scatter-gather
segments was reduced to 8, I saw a performance difference of about
0.25-0.4 Mbytes/sec during write.  Read performance variations were
negligible.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.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>
arch/arm/mach-davinci/include/mach/mmc.h
drivers/mmc/host/davinci_mmc.c