]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: mt7621-mmc: Change default transfer mode to DMA
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Wed, 18 Apr 2018 15:27:43 +0000 (17:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:37:55 +0000 (15:37 +0200)
The current default transfer is to use DMA or not depending on the
size of the data. The upstream driver mtk-sd uses DMA all times,
change the standard mode here to DMA for testing, if there are any
performance problems with DMA for small data sizes. If not, the option
for transfer mode should be removed in the future,

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/dbg.c

index 9a1809d74ea31f9754a7e3ed01d2fa86c0739c2a..0d6e21557d8f5f309ee839260db0e49c1dbc973a 100644 (file)
@@ -67,10 +67,10 @@ u32 dma_size[4] = {
 };
 
 enum msdc_mode drv_mode[4] = {
-       MODE_SIZE_DEP, /* using DMA or not depend on the size */
-       MODE_SIZE_DEP,
-       MODE_SIZE_DEP,
-       MODE_SIZE_DEP
+       MODE_DMA, /* using DMA always */
+       MODE_DMA,
+       MODE_DMA,
+       MODE_DMA
 };
 
 #if defined(MT6575_SD_DEBUG)