From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from n26.bullet.mail.mud.yahoo.com (n26.bullet.mail.mud.yahoo.com [68.142.206.221]) by ozlabs.org (Postfix) with SMTP id ACC58DDE98 for ; Thu, 6 Nov 2008 06:22:37 +1100 (EST) References: <131123.51430.qm@web46312.mail.sp1.yahoo.com> <4911C695.4070401@freescale.com> Date: Wed, 5 Nov 2008 11:22:35 -0800 (PST) From: Laxmikant Rashinkar Subject: Re: i2c driver's probe routine not getting called To: Scott Wood MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1496673244-1225912955=:15414" Message-ID: <789886.15414.qm@web46310.mail.sp1.yahoo.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-1496673244-1225912955=:15414 Content-Type: text/plain; charset=us-ascii I actually tried using the in tree i2c-mpc driver before sending out my email. This driver would silently reset the system when i2c accesses took place. So I guess I'll try to modify the old driver to support new OF interface. thanks LK ________________________________ From: Scott Wood To: Laxmikant Rashinkar Cc: linuxppc-embedded@ozlabs.org Sent: Wednesday, November 5, 2008 8:15:17 AM Subject: Re: i2c driver's probe routine not getting called Laxmikant Rashinkar wrote: > I have linux-2.6.27.1 running on a MPC8347 based board. > > When my freescale I2C driver is insmoded, it calls platform_driver_register() successfully, but the probe routine doesn't get called. Is "your" freescale I2C driver different from "the" freescale I2C driver in drivers/i2c/busses/i2c-mpc.c? If so, you'll need to update it to be an of_platform driver like the in-tree driver is (or, just switch to the in-tree driver). -Scott --0-1496673244-1225912955=:15414 Content-Type: text/html; charset=us-ascii
I actually tried using the in tree i2c-mpc driver before sending out my email. This driver would silently reset the system when i2c accesses took place.

So I guess I'll try to modify the old driver to support new OF interface.

thanks
LK


From: Scott Wood <scottwood@freescale.com>
To: Laxmikant Rashinkar <lk.atwork@yahoo.com>
Cc: linuxppc-embedded@ozlabs.org
Sent: Wednesday, November 5, 2008 8:15:17 AM
Subject: Re: i2c driver's probe routine not getting called

Laxmikant Rashinkar wrote:
> I have linux-2.6.27.1 running on a MPC8347 based board.
>
> When my freescale I2C driver is insmoded, it calls platform_driver_register() successfully, but the probe routine doesn't get called.

Is "your" freescale I2C driver different from "the" freescale I2C driver in drivers/i2c/busses/i2c-mpc.c?  If so, you'll need to update it to be an of_platform driver like the in-tree driver is (or, just switch to the in-tree driver).

-Scott

--0-1496673244-1225912955=:15414--