Hi Jean,

>> Bummer! This should not be I2COM_MASTER but I2COM_START! Otherwise no
>> I2C communication will happen.
>>
>> After applying this change, the driver works fine on an MPC8260 (like
>> the previous version did).
> 
> Would you have the possibility to review and ack this patch (with the
> suggested fix above, of course)?

I'd like to add yet another small change:

It doesn't make sense to add fsl,cpm-i2c as second compatible entry in the
device tree just for loading the driver. The match table can use
fsl,cpm1-i2c and fsl,cpm2-i2c directly.

Thanks,
Jochen

diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c
index 2bd0512..7c0f6d4 100644
--- a/drivers/i2c/busses/i2c-cpm.c
+++ b/drivers/i2c/busses/i2c-cpm.c
@@ -693,7 +693,10 @@ static int __devexit cpm_i2c_remove(struct of_device 
*ofdev)
 
 static const struct of_device_id cpm_i2c_match[] = {
        {
-               .compatible = "fsl,cpm-i2c",
+               .compatible = "fsl,cpm1-i2c",
+       },
+       {
+               .compatible = "fsl,cpm2-i2c",
        },
        {},
 };

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

Reply via email to