浏览代码

mmc: sg fallout

Do a full scan of the directory to try and be a bit more proactive,
instead of waiting for things to break.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Jens Axboe 17 年之前
父节点
当前提交
bd6dee6f30
共有 5 个文件被更改,包括 5 次插入8 次删除
  1. 1 1
      drivers/mmc/host/au1xmmc.c
  2. 3 3
      drivers/mmc/host/mmci.c
  3. 0 1
      drivers/mmc/host/pxamci.c
  4. 0 2
      drivers/mmc/host/sdhci.c
  5. 1 1
      drivers/mmc/host/wbsd.c

+ 1 - 1
drivers/mmc/host/au1xmmc.c

@@ -40,13 +40,13 @@
 #include <linux/mm.h>
 #include <linux/mm.h>
 #include <linux/interrupt.h>
 #include <linux/interrupt.h>
 #include <linux/dma-mapping.h>
 #include <linux/dma-mapping.h>
+#include <scatterlist/scatterlist.h>
 
 
 #include <linux/mmc/host.h>
 #include <linux/mmc/host.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/mach-au1x00/au1000.h>
 #include <asm/mach-au1x00/au1000.h>
 #include <asm/mach-au1x00/au1xxx_dbdma.h>
 #include <asm/mach-au1x00/au1xxx_dbdma.h>
 #include <asm/mach-au1x00/au1100_mmc.h>
 #include <asm/mach-au1x00/au1100_mmc.h>
-#include <asm/scatterlist.h>
 
 
 #include <au1xxx.h>
 #include <au1xxx.h>
 #include "au1xmmc.h"
 #include "au1xmmc.h"

+ 3 - 3
drivers/mmc/host/mmci.c

@@ -20,11 +20,11 @@
 #include <linux/mmc/host.h>
 #include <linux/mmc/host.h>
 #include <linux/amba/bus.h>
 #include <linux/amba/bus.h>
 #include <linux/clk.h>
 #include <linux/clk.h>
+#include <linux/scatterlist.h>
 
 
 #include <asm/cacheflush.h>
 #include <asm/cacheflush.h>
 #include <asm/div64.h>
 #include <asm/div64.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <asm/scatterlist.h>
 #include <asm/sizes.h>
 #include <asm/sizes.h>
 #include <asm/mach/mmc.h>
 #include <asm/mach/mmc.h>
 
 
@@ -167,7 +167,7 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
 		 * partially written to a page is properly coherent.
 		 * partially written to a page is properly coherent.
 		 */
 		 */
 		if (host->sg_len && data->flags & MMC_DATA_READ)
 		if (host->sg_len && data->flags & MMC_DATA_READ)
-			flush_dcache_page(host->sg_ptr->page);
+			flush_dcache_page(sg_page(host->sg_ptr));
 	}
 	}
 	if (status & MCI_DATAEND) {
 	if (status & MCI_DATAEND) {
 		mmci_stop_data(host);
 		mmci_stop_data(host);
@@ -319,7 +319,7 @@ static irqreturn_t mmci_pio_irq(int irq, void *dev_id)
 		 * page, ensure that the data cache is coherent.
 		 * page, ensure that the data cache is coherent.
 		 */
 		 */
 		if (status & MCI_RXACTIVE)
 		if (status & MCI_RXACTIVE)
-			flush_dcache_page(host->sg_ptr->page);
+			flush_dcache_page(sg_page(host->sg_ptr));
 
 
 		if (!mmci_next_sg(host))
 		if (!mmci_next_sg(host))
 			break;
 			break;

+ 0 - 1
drivers/mmc/host/pxamci.c

@@ -29,7 +29,6 @@
 
 
 #include <asm/dma.h>
 #include <asm/dma.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <asm/scatterlist.h>
 #include <asm/sizes.h>
 #include <asm/sizes.h>
 
 
 #include <asm/arch/pxa-regs.h>
 #include <asm/arch/pxa-regs.h>

+ 0 - 2
drivers/mmc/host/sdhci.c

@@ -17,8 +17,6 @@
 
 
 #include <linux/mmc/host.h>
 #include <linux/mmc/host.h>
 
 
-#include <asm/scatterlist.h>
-
 #include "sdhci.h"
 #include "sdhci.h"
 
 
 #define DRIVER_NAME "sdhci"
 #define DRIVER_NAME "sdhci"

+ 1 - 1
drivers/mmc/host/wbsd.c

@@ -33,10 +33,10 @@
 #include <linux/pnp.h>
 #include <linux/pnp.h>
 #include <linux/highmem.h>
 #include <linux/highmem.h>
 #include <linux/mmc/host.h>
 #include <linux/mmc/host.h>
+#include <linux/scatterlist.h>
 
 
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/dma.h>
 #include <asm/dma.h>
-#include <asm/scatterlist.h>
 
 
 #include "wbsd.h"
 #include "wbsd.h"