sensors can't be detected on i2c-mpc

2 messages, 2 authors, 2009-06-09 · open the first message on its own page

sensors can't be detected on i2c-mpc

From: Hide Saito <hidden>
Date: 2009-06-09 01:21:29

sensors can't be detected on i2c-mpc

Hi all,

The sensors can't be detected on the built-in I2C interface on the Freescale's MPC processors on linux-2.6.29.
If it is not yet fixed, I think that it is forgotten to set the following values in the class.

Signed-off-by: Hideo Saito <redacted>
---
--- drivers/i2c/busses/i2c-mpc.c.org	2009-03-24 08:12:14.000000000 +0900
+++ drivers/i2c/busses/i2c-mpc.c	2009-06-04 08:50:34.000000000 +0900
@@ -304,16 +304,17 @@ static u32 mpc_functionality(struct i2c_
 
 static const struct i2c_algorithm mpc_algo = {
 	.master_xfer = mpc_xfer,
 	.functionality = mpc_functionality,
 };
 
 static struct i2c_adapter mpc_ops = {
 	.owner = THIS_MODULE,
+	.class = I2C_CLASS_HWMON | I2C_CLASS_SPD,
 	.name = "MPC adapter",
 	.algo = &mpc_algo,
 	.timeout = 1,
 };
 
 static int __devinit fsl_i2c_probe(struct of_device *op, const struct of_device_id *match)
 {
 	int result = 0;

Re: sensors can't be detected on i2c-mpc

From: Grant Likely <hidden>
Date: 2009-06-09 03:19:38

On Mon, Jun 8, 2009 at 7:20 PM, Hide Saito[off-list ref] wrote:
sensors can't be detected on i2c-mpc

Hi all,

The sensors can't be detected on the built-in I2C interface on the Freescale's MPC processors on linux-2.6.29.
If it is not yet fixed, I think that it is forgotten to set the following values in the class.

Signed-off-by: Hideo Saito <redacted>
Since i2c probing is hit and miss at best; Most MPCxxxx SPI busses get
the i2c bus topology out of the device tree file
(arch/powerpc/boot/dts/<board-name>.dts) and do not support probing.
If the i2c device you need is missing, then add a node to the .dts
file for the missing device (there are lots of examples of this in the
dts directory).

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help