[i2c] Numbering of i2c adapters
Grant Likely
grant.likely at secretlab.ca
Thu Sep 13 15:51:53 CEST 2007
On 9/13/07, Rafal Zabdyr <armo at semihalf.com> wrote:
> Hi Grant!
>
> Thanks for your comments.
>
> Grant Likely wrote:
> >>> 3. Setting adap.nr was previously based on pdev->id which is not
> >>> available in the context of_device struct in the new I2C approach.
> >>>
> >>> Do you think it is a problem, or am I missing something?
> >
> > of_device is *not* used by this driver. (it probably should be, but
> > it isn't). This is still a platform_device driver and fsl_i2c_of_init
> > registers the needed platform_device for each controller.
> >
> We were working with linux-2.6-denx, and there was applied some
> temporary patch:
>
> ref:
> http://www.nabble.com/i2c-mpc:-add-support-for-arch-powerpc--tree-t3332921.html
>
> Rolling back resolves the problem.
Ah, yes. In fact, Domen's patch is a better solution, but it needs to
be adapted for *all* mpc boards. Maybe I'll get around to it one of
these days...
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
More information about the i2c
mailing list