9
0
Fork 0

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>
This commit is contained in:
Eric Bénard 2013-09-10 19:13:31 +02:00 committed by Sascha Hauer
parent dbbed8457f
commit 3b3ec898cd
1 changed files with 1 additions and 0 deletions

View File

@ -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);