summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2013-09-10 19:13:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-10 21:03:59 +0200
commit3b3ec898cd1f43ad295b965a622c8cff4f3cb6ae (patch)
tree2db0b363bd5ce6686fffd50670de429e9f776a47
parentdbbed8457f79406686f53388ea8c05b56e2bbdfd (diff)
downloadbarebox-3b3ec898cd1f43ad295b965a622c8cff4f3cb6ae.tar.gz
barebox-3b3ec898cd1f43ad295b965a622c8cff4f3cb6ae.tar.xz
mxs_spi: unbreak driver
since the switch to common clock, SPI driver reports : MXS: Timeout resetting block via register 0x80014000 mxs_spi mxs_spi2: MXS SPI: Timeout waiting for start The reason is that the clock is not enabled anywhere in the driver. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/spi/mxs_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c
index a80365264c..a00784f55b 100644
--- a/drivers/spi/mxs_spi.c
+++ b/drivers/spi/mxs_spi.c
@@ -270,6 +270,7 @@ static int mxs_spi_probe(struct device_d *dev)
mxs->clk = clk_get(dev, NULL);
if (IS_ERR(mxs->clk))
return PTR_ERR(mxs->clk);
+ clk_enable(mxs->clk);
spi_register_master(master);