i2c-pxa: prepare clock before use
PATCH 1/1 i2c-pxa: prepare clock before use
On OLPC XO-1.75 (MMP2), a WARN_ON() was occurring during boot since the clock being enabled by i2c-pxa had not been prepared.
Use clk_prepare_enable() to ensure that the prepare operation has taken place.
Signed-off-by Daniel Drake <[email protected]>
--- drivers/i2c/busses/i2c-pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-pxa.c +1 -1
@@ -1160,7 +1160,7 @@ static int i2c_pxa_probe(struct platform_device *dev) i2c->adap.class = plat->class; } -clk_enable (i2c->clk); +clk_prepare_enable (i2c->clk);if (i2c->use_pio) { i2c->adap.algo = &i2c_pxa_pio_algorithm;
Signature · 1 line
1.8.1.4
A message that is not in the archive (sent off-list or not yet received): 20130613192457.51006FAACE-2+9YHz4BXxlLDiiyqF6/[email protected]
Quoted 7 lines · Daniel Drake
On OLPC XO-1.75 (MMP2), a
WARN_ON()was occurring during boot since the clock being enabled by i2c-pxa had not been prepared.Use
clk_prepare_enable()to ensure that the prepare operation has taken place.Signed-off-by Daniel Drake <[email protected]>
The other half of the pair is missing.
Quoted 20 lines
--- drivers/i2c/busses/i2c-pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/busses/i2c-pxa.c +1
-1@@ -1160,7 +1160,7 @@ static int i2c_pxa_probe(struct platform_device *dev) i2c->adap.class = plat->class; } -clk_enable (i2c->clk); +clk_prepare_enable (i2c->clk);if (i2c->use_pio) { i2c->adap.algo = &i2c_pxa_pio_algorithm;Signature · 1 line
1.8.1.4