diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-09-19 19:09:27 (GMT) |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2008-09-20 10:11:29 (GMT) |
commit | 87e60f2b80202575a23fa1bf56c6eb3b419c480a (patch) | |
tree | 290d3f6544b60af7fbede6cea481540263839095 /drivers/mmc/host | |
parent | fe246eb0b7f2e995c4f172f360bc4e86baccaafe (diff) | |
download | linux-fsl-qoriq-87e60f2b80202575a23fa1bf56c6eb3b419c480a.tar.xz |
atmel-mci: debugfs: enable clock before dumping regs
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>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/atmel-mci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 0bd06f5..6de773d 100644 --- 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", |