Skip to contentSkip to conversation

i2c-ibm_iic: Enable driver for all PPC4xx variants in arch/powerpc

PATCH In review Stefan Roese 3 participants 4 messages Jun 5, 2008 – Jun 9, 2008 1 message not in the archive I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c-ibm_iic: Enable driver for all PPC4xx variants in arch/powerpc

This patch enables the IBM I2C driver for all PPC4xx variants by adding "ibm,iic" to the compatible list. This way all currently available arch/powerpc 4xx ports can make use of this driver without any changes. Additionally all "other" compatible entries are removed since they are not needed anymore.

Currently all 4xx PPC's have the same compatible I2C macro. If at some time an incompatibility is detected we can take care of this with an additional property.

---
 drivers/i2c/busses/i2c-ibm_iic.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/i2c/busses/i2c-ibm_iic.c +1 -5
index 3a364a7..ed73801 100644
@@ -807,11 +807,7 @@ static int __devexit iic_remove(struct of_device *ofdev)
 }
 
 static const struct of_device_id ibm_iic_match[] = {
-	{ .compatible = "ibm,iic-405ex", },
-	{ .compatible = "ibm,iic-405gp", },
-	{ .compatible = "ibm,iic-440gp", },
-	{ .compatible = "ibm,iic-440gpx", },
-	{ .compatible = "ibm,iic-440grx", },
+	{ .compatible = "ibm,iic", },
 	{}
 };
 
Signature · 7 lines
1.5.5.3


_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · On Thu, 5 Jun 2008 10:10:53 +0200 Stefan Roese <[email protected]> wrote:

This patch enables the IBM I2C driver for all PPC4xx variants by adding "ibm,iic" to the compatible list. This way all currently available arch/powerpc 4xx ports can make use of this driver without any changes. Additionally all "other" compatible entries are removed since they are not needed anymore.

Currently all 4xx PPC's have the same compatible I2C macro. If at some time an incompatibility is detected we can take care of this with an additional property.

josh

Quoted 21 lines
---
 drivers/i2c/busses/i2c-ibm_iic.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/i2c/busses/i2c-ibm_iic.c +1 -5
index 3a364a7..ed73801 100644
@@ -807,11 +807,7 @@ static int __devexit iic_remove(struct of_device *ofdev)
 }
 
 static const struct of_device_id ibm_iic_match[] = {
-	{ .compatible = "ibm,iic-405ex", },
-	{ .compatible = "ibm,iic-405gp", },
-	{ .compatible = "ibm,iic-440gp", },
-	{ .compatible = "ibm,iic-440gpx", },
-	{ .compatible = "ibm,iic-440grx", },
+	{ .compatible = "ibm,iic", },
 	{}
 };
 
#2 lore raw
In reply to Stefan Roese

Hi Stefan,

Quoted 22 lines · Stefan Roese

This patch enables the IBM I2C driver for all PPC4xx variants by adding "ibm,iic" to the compatible list. This way all currently available arch/powerpc 4xx ports can make use of this driver without any changes. Additionally all "other" compatible entries are removed since they are not needed anymore.

Currently all 4xx PPC's have the same compatible I2C macro. If at some time an incompatibility is detected we can take care of this with an additional property.

---
 drivers/i2c/busses/i2c-ibm_iic.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/i2c/busses/i2c-ibm_iic.c +0 -0
index 3a364a7..ed73801 100644
@@ -807,11 +807,7 @@ static int __devexit iic_remove(struct of_device *ofdev)
 }
 

drivers/i2c/busses/i2c-ibm_iic.c static int __devexit iic_remove(struct of_device *ofdev) · line 813

Quoted 10 lines
drivers/i2c/busses/i2c-ibm_iic.c +1 -5
 static const struct of_device_id ibm_iic_match[] = {
-	{ .compatible = "ibm,iic-405ex", },
-	{ .compatible = "ibm,iic-405gp", },
-	{ .compatible = "ibm,iic-440gp", },
-	{ .compatible = "ibm,iic-440gpx", },
-	{ .compatible = "ibm,iic-440grx", },
+	{ .compatible = "ibm,iic", },
 	{}
 };
 

OK, I can take this in my tree, unless it depends on arch-specific patches which have not hit mainline yet. I guess this is 2.6.27 material?

Signature · 1 line
Jean Delvare

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Hi Jean,

Quoted 22 lines · Jean Delvare
Quoted 22 lines

This patch enables the IBM I2C driver for all PPC4xx variants by adding "ibm,iic" to the compatible list. This way all currently available arch/powerpc 4xx ports can make use of this driver without any changes. Additionally all "other" compatible entries are removed since they are not needed anymore.

Currently all 4xx PPC's have the same compatible I2C macro. If at some time an incompatibility is detected we can take care of this with an additional property.

---
 drivers/i2c/busses/i2c-ibm_iic.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/drivers/i2c/busses/i2c-ibm_iic.c index 3a364a7..ed73801 100644

drivers/i2c/busses/i2c-ibm_iic.c +0 -0
@@ -807,11 +807,7 @@ static int __devexit iic_remove(struct of_device
 *ofdev) }
 
Quoted 12 lines

drivers/i2c/busses/i2c-ibm_iic.c static int __devexit iic_remove(struct of_device *ofdev) · line 812

Quoted 9 lines
drivers/i2c/busses/i2c-ibm_iic.c +1 -5
 static const struct of_device_id ibm_iic_match[] = {
-	{ .compatible = "ibm,iic-405ex", },
-	{ .compatible = "ibm,iic-405gp", },
-	{ .compatible = "ibm,iic-440gp", },
-	{ .compatible = "ibm,iic-440gpx", },
-	{ .compatible = "ibm,iic-440grx", },
+	{ .compatible = "ibm,iic", },
 	{}
 };

OK, I can take this in my tree, unless it depends on arch-specific patches which have not hit mainline yet.

No, this doesn't depend on other pathes.

Quoted 2 lines

I guess this is 2.6.27
material?

Yes. No real hurry here.

Thanks.

Best regards,
Stefan

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