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

Commit 87e60f2b authored by Haavard Skinnemoen's avatar Haavard Skinnemoen Committed by Pierre Ossman
Browse files

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: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent fe246eb0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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",