From: Haavard Skinnemoen Date: Fri, 19 Sep 2008 19:09:27 +0000 (+0200) Subject: atmel-mci: debugfs: enable clock before dumping regs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87e60f2b80202575a23fa1bf56c6eb3b419c480a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Pierre Ossman --- diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 0bd06f5bd62f..6de773d3a0cf 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",