[PATCH 1/4] mxs_spi: unbreak driver

Eric Bénard eric at eukrea.com
Tue Sep 10 13:13:31 EDT 2013


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 at eukrea.com>
---
 drivers/spi/mxs_spi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c
index a803652..a00784f 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);
 
-- 
1.8.3.1




More information about the barebox mailing list