linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* i2c driver's probe routine not getting called
@ 2008-11-05  3:30 Laxmikant Rashinkar
  2008-11-05 16:15 ` Scott Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Laxmikant Rashinkar @ 2008-11-05  3:30 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]

Hi,

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. AFAIK, this only happens if the device is not known. I could call platform_device_register() to make the device known, but it seems to be the wrong approach. Shouldn't the definitions in my device tree be doing that? Here is the i2c section of my device tree:

                i2c@3000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        cell-index = <0>;
                        compatible = "fsl-i2c";
                        reg = <0x3000 0x100>;
                        interrupts = <14 0x8>;
                        interrupt-parent = <&ipic>;
                        dfsrr;

                        rtc@68 {
                                compatible = "dallas,ds1374";
                                reg = <0x68>;
                        };
                };

                i2c@3100 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        cell-index = <1>;
                        compatible = "fsl-i2c";
                        reg = <0x3100 0x100>;
                        interrupts = <15 0x8>;
                        interrupt-parent = <&ipic>;
                        dfsrr;
                };

Could something be wrong here? Note that the same drivers works fine under linux-2.6.15.4

all help appreciated
thanks
LK


      

[-- Attachment #2: Type: text/html, Size: 4643 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i2c driver's probe routine not getting called
  2008-11-05  3:30 i2c driver's probe routine not getting called Laxmikant Rashinkar
@ 2008-11-05 16:15 ` Scott Wood
  2008-11-05 19:22   ` Laxmikant Rashinkar
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2008-11-05 16:15 UTC (permalink / raw)
  To: Laxmikant Rashinkar; +Cc: linuxppc-embedded

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i2c driver's probe routine not getting called
  2008-11-05 16:15 ` Scott Wood
@ 2008-11-05 19:22   ` Laxmikant Rashinkar
  0 siblings, 0 replies; 3+ messages in thread
From: Laxmikant Rashinkar @ 2008-11-05 19:22 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

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



      

[-- Attachment #2: Type: text/html, Size: 1677 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-05 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05  3:30 i2c driver's probe routine not getting called Laxmikant Rashinkar
2008-11-05 16:15 ` Scott Wood
2008-11-05 19:22   ` Laxmikant Rashinkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).