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

Commit 33a87a15 authored by Vinod Koul's avatar Vinod Koul Committed by Brian Norris
Browse files

mtd: mxc_nand: use __iowrite32_copy for 32 bit copy



The driver was also using own method to do 32bit copy, turns out
we have a kernel API so use that instead

Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent e8e6c875
Loading
Loading
Loading
Loading
+3 −7
Original line number Original line Diff line number Diff line
@@ -280,14 +280,10 @@ static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size)
		*t++ = __raw_readl(s++);
		*t++ = __raw_readl(s++);
}
}


static void memcpy32_toio(void __iomem *trg, const void *src, int size)
static inline void memcpy32_toio(void __iomem *trg, const void *src, int size)
{
{
	int i;
	/* __iowrite32_copy use 32bit size values so divide by 4 */
	u32 __iomem *t = trg;
	__iowrite32_copy(trg, src, size / 4);
	const u32 *s = src;

	for (i = 0; i < (size >> 2); i++)
		__raw_writel(*s++, t++);
}
}


static int check_int_v3(struct mxc_nand_host *host)
static int check_int_v3(struct mxc_nand_host *host)