aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-mci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/glamo/glamo-mci.c')
-rw-r--r--drivers/mfd/glamo/glamo-mci.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-mci.c b/drivers/mfd/glamo/glamo-mci.c
index 10617cc84bd..0c8c1974f39 100644
--- a/drivers/mfd/glamo/glamo-mci.c
+++ b/drivers/mfd/glamo/glamo-mci.c
@@ -199,8 +199,16 @@ static void do_pio_read(struct glamo_mci_host *host)
block = (u16 *)host->pio_ptr;
res = host->pio_words << 1;
#endif
+#if 0
+ /* u16-centric memcpy */
while (host->pio_words--)
*host->pio_ptr++ = *from_ptr++;
+#else
+ /* memcpy can be faster? */
+ memcpy((void *)host->pio_ptr, from_ptr, host->pio_words << 1);
+ host->pio_ptr += host->pio_words;
+#endif
+
#ifdef DEBUG
print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 1,
(void *)block, res, 1);