projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe246eb
)
atmel-mci: debugfs: enable clock before dumping regs
author
Haavard Skinnemoen
<haavard.skinnemoen@atmel.com>
Fri, 19 Sep 2008 19:09:27 +0000
(21:09 +0200)
committer
Pierre Ossman
<drzeus@drzeus.cx>
Sat, 20 Sep 2008 10:11:29 +0000
(12:11 +0200)
Make sure that the peripheral clock is enabled before reading the MMIO
registers for the debugfs "regs" dump.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/atmel-mci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/atmel-mci.c
b/drivers/mmc/host/atmel-mci.c
index 0bd06f5bd62ffa414439dcd3a4c382124832c779..6de773d3a0cfde3d526f8dfdd2d41c9c3c7f56e9 100644
(file)
--- a/
drivers/mmc/host/atmel-mci.c
+++ b/
drivers/mmc/host/atmel-mci.c
@@
-195,7
+195,9
@@
static int atmci_regs_show(struct seq_file *s, void *v)
/* Grab a more or less consistent snapshot */
spin_lock_irq(&host->mmc->lock);
+ clk_enable(host->mck);
memcpy_fromio(buf, host->regs, MCI_REGS_SIZE);
+ clk_disable(host->mck);
spin_unlock_irq(&host->mmc->lock);
seq_printf(s, "MR:\t0x%08x%s%s CLKDIV=%u\n",