From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <489ACC69.5070701@grandegger.com> Date: Thu, 07 Aug 2008 12:20:25 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 To: Jean Delvare Subject: Re: [PATCH] i2c-mpc: suppress I2C device probing References: <487F20EC.9040503@grandegger.com> <20080807102126.5980c761@hyperion.delvare> In-Reply-To: <20080807102126.5980c761@hyperion.delvare> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Jean Delvare wrote: > Hi Grant, Wolgang, > > On Thu, 17 Jul 2008 12:02:50 -0600, Grant Likely wrote: >> On Thu, Jul 17, 2008 at 4:37 AM, Wolfgang Grandegger wrote: >>> This patch suppresses I2C device probing by clearing the class field >>> of the "struct i2c_adapter" for the MPC I2C bus adapters. Some board >>> configurations which rely on probing must be fixed up by adding a >>> proper I2C device node to the DTS file, like the TQM85xx modules. >>> >>> Signed-off-by: Wolfgang Grandegger >> Acked-by: Grant Likely >> >>> --- >>> drivers/i2c/busses/i2c-mpc.c | 1 - >>> 1 file changed, 1 deletion(-) >>> >>> Index: powerpc/drivers/i2c/busses/i2c-mpc.c >>> =================================================================== >>> --- powerpc.orig/drivers/i2c/busses/i2c-mpc.c >>> +++ powerpc/drivers/i2c/busses/i2c-mpc.c >>> @@ -312,7 +312,6 @@ static struct i2c_adapter mpc_ops = { >>> .name = "MPC adapter", >>> .id = I2C_HW_MPC107, >>> .algo = &mpc_algo, >>> - .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, >>> .timeout = 1, >>> }; > > Unless you intend to push this patch upstream yourself (through the ppc > tree), you should send it to Ben Dooks (who is in charge of this part > of the i2c subsystem) with Cc to the i2c list. I just want to mention, that other I2 bus drivers set I2C_CLASS_HWMON as well. Here are the PowerPC related ones: $ grep I2C_CLASS_HWMON * i2c-cpm.c: .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, i2c-mpc.c: .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, i2c-ibm_iic.c: adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; i2c-pasemi.c: smbus->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; i2c-mv64xxx.c: drv_data->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; It would be consequent to remove them as well. Wolfgang.