Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab53a571 authored by Antoine Tenart's avatar Antoine Tenart Committed by Brian Norris
Browse files

mtd: pxa3xx_nand: fix some compile issues on non-ARM arches



Using readsl() result in a build error on i386. Fix this by using
ioread32_rep() instead, to allow compile testing the pxa3xx nand driver
on other architectures later.

Suggested-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 64862dbc
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -532,7 +532,7 @@ static void drain_fifo(struct pxa3xx_nand_info *info, void *data, int len)
		 * the polling on the last read.
		 * the polling on the last read.
		 */
		 */
		while (len > 8) {
		while (len > 8) {
			readsl(info->mmio_base + NDDB, data, 8);
			ioread32_rep(info->mmio_base + NDDB, data, 8);


			ret = readl_relaxed_poll_timeout(info->mmio_base + NDSR, val,
			ret = readl_relaxed_poll_timeout(info->mmio_base + NDSR, val,
							 val & NDSR_RDDREQ, 1000, 5000);
							 val & NDSR_RDDREQ, 1000, 5000);
@@ -547,7 +547,7 @@ static void drain_fifo(struct pxa3xx_nand_info *info, void *data, int len)
		}
		}
	}
	}


	readsl(info->mmio_base + NDDB, data, len);
	ioread32_rep(info->mmio_base + NDDB, data, len);
}
}


static void handle_data_pio(struct pxa3xx_nand_info *info)
static void handle_data_pio(struct pxa3xx_nand_info *info)