Skip to contentSkip to conversation

i2c-cpm: Suppress autoprobing for devices

PATCH Applied Wolfram Sang 6 participants 8 messages Oct 16, 2008 – Oct 20, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c-cpm: Suppress autoprobing for devices

Similar to commit 618b26d52843c0f85b8eb143cf2695d7f6fd072d, also remove automatic probing for this i2c controller. Might need updates to dts files using it.

---
 drivers/i2c/busses/i2c-cpm.c |    1 -
 1 file changed, 1 deletion(-)
drivers/i2c/busses/i2c-cpm.c +0 -1
Index: linux-2.6/drivers/i2c/busses/i2c-cpm.c
===================================================================
@@ -423,7 +423,6 @@ static const struct i2c_adapter cpm_ops 
 	.owner		= THIS_MODULE,
 	.name		= "i2c-cpm",
 	.algo		= &cpm_i2c_algo,
-	.class		= I2C_CLASS_HWMON | I2C_CLASS_SPD,
 };
 
 static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm)
Signature · 2 lines
  Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
#2 lore raw
In reply to Wolfram Sang
Quoted 9 lines · Wolfram Sang

Similar to commit 618b26d52843c0f85b8eb143cf2695d7f6fd072d, also remove automatic probing for this i2c controller. Might need updates to dts files using it.

---
drivers/i2c/busses/i2c-cpm.c | 1 -

1 file changed, 1 deletion(-)

The i2c list should be CC'd. Jean should pick this up.

- k

#3 lore raw

From: Kumar Gala <[email protected]>
Date: Thu, 16 Oct 2008 11:09:30 -0500

Quoted 8 lines · Wolfram Sang
Quoted 6 lines

Similar to commit 618b26d52843c0f85b8eb143cf2695d7f6fd072d, also remove automatic probing for this i2c controller. Might need updates to dts files using it.

Quoted 6 lines
Quoted 4 lines

---
drivers/i2c/busses/i2c-cpm.c | 1 -

1 file changed, 1 deletion(-)

The i2c list should be CC'd. Jean should pick this up.

Don't bother, he'll just argue with you about the fact that class based probing should be maintained.

He's doing exactly that with me right now.

I think the powerpc folks are doing exactly the right thing by merging their I2C changes directly to Linus. Please just continue doing this.

That's what I should have done with my sparc stuff, I'm being punished now for having sent my changes to "the right place". :-/

#4 lore raw
Quoted 4 lines · David Miller

Don't bother, he'll just argue with you about the fact that class based probing should be maintained.

He's doing exactly that with me right now.

I think the two of you talked at cross purposes. Just observing, I can follow his point, that you can easily switch probing off in the driver (like Wolfgang Grandegger's and my patch does), so there is no need to sacrifice some functionality of a whole algorithm. Just clear the .class-entry in your driver and there should be peace ;)

All the best,

Wolfram

Signature · 2 lines
  Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
author Acked-by Jochen Friedrich on v1 1/1
#5 lore raw
In reply to Wolfram Sang

Similar to commit 618b26d52843c0f85b8eb143cf2695d7f6fd072d, also remove automatic probing for this i2c controller. Might need updates to dts files using it.

---
Resend with cc to i2c.

 drivers/i2c/busses/i2c-cpm.c |    1 -
 1 file changed, 1 deletion(-)
drivers/i2c/busses/i2c-cpm.c +0 -1
Index: linux-2.6/drivers/i2c/busses/i2c-cpm.c
===================================================================
@@ -423,7 +423,6 @@ static const struct i2c_adapter cpm_ops 
 	.owner		= THIS_MODULE,
 	.name		= "i2c-cpm",
 	.algo		= &cpm_i2c_algo,
-	.class		= I2C_CLASS_HWMON | I2C_CLASS_SPD,
 };
 
 static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm)
Signature · 2 lines
  Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Acked-by
#6 lore raw

Hi Wolfram,

Quoted 17 lines · Wolfram Sang

Similar to commit 618b26d52843c0f85b8eb143cf2695d7f6fd072d, also remove automatic probing for this i2c controller. Might need updates to dts files using it.

---
Resend with cc to i2c.

 drivers/i2c/busses/i2c-cpm.c |    1 -
 1 file changed, 1 deletion(-)

Index: linux-2.6/drivers/i2c/busses/i2c-cpm.c
===================================================================

drivers/i2c/busses/i2c-cpm.c static const struct i2c_adapter cpm_ops · line 428

Quoted 7 lines
drivers/i2c/busses/i2c-cpm.c +0 -1
@@ -423,7 +423,6 @@ static const struct i2c_adapter cpm_ops 
 	.owner		= THIS_MODULE,
 	.name		= "i2c-cpm",
 	.algo		= &cpm_i2c_algo,
-	.class		= I2C_CLASS_HWMON | I2C_CLASS_SPD,
 };
 
 static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm)

I guess you do _not_ want me to push this patch upstream now and it better goes through the powerpc tree to allow a synchronization with dts file changes?

If I'm wrong and you want me to take this patch in my tree then please tell me.

Signature · 1 line
Jean Delvare

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

Applied
#8 lore raw
Quoted 6 lines · Wolfram Sang

Similar to commit 618b26d52843c0f85b8eb143cf2695d7f6fd072d, also remove
automatic probing for this i2c controller. Might need updates to dts files
using it.

Quoted 7 lines

---
Resend with cc to i2c.

drivers/i2c/busses/i2c-cpm.c | 1 -

1 file changed, 1 deletion(-)

applied

- k

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