* build breakage from of i2c helper patch @ 2008-04-17 7:11 Kumar Gala 2008-04-17 9:25 ` Jochen Friedrich 0 siblings, 1 reply; 6+ messages in thread From: Kumar Gala @ 2008-04-17 7:11 UTC (permalink / raw) To: Jochen Friedrich Cc: Stephen Rothwell, Paul Mackerras, Linux I2C, linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org list I'm guessing the "[POWERPC] i2c: OF helpers for the i2c API" http://git.kernel.org/?p=linux/kernel/git/paulus/powerpc.git;a=commitdiff;h=612212a3f2f053ea68ce9cd16d3deeca7754e8c9 is causing this build failure: http://kisskb.ellerman.id.au/kisskb/buildresult/24375/ - k _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: build breakage from of i2c helper patch 2008-04-17 7:11 build breakage from of i2c helper patch Kumar Gala @ 2008-04-17 9:25 ` Jochen Friedrich [not found] ` <48071778.2000405-NIgtFMG+Po8@public.gmane.org> 2008-04-18 11:27 ` Paul Mackerras 0 siblings, 2 replies; 6+ messages in thread From: Jochen Friedrich @ 2008-04-17 9:25 UTC (permalink / raw) To: Kumar Gala Cc: Stephen Rothwell, Paul Mackerras, Linux I2C, linuxppc-dev@ozlabs.org list Hi Kumar, > I'm guessing the "[POWERPC] i2c: OF helpers for the i2c API" > > http://git.kernel.org/?p=linux/kernel/git/paulus/powerpc.git;a=commitdiff;h=612212a3f2f053ea68ce9cd16d3deeca7754e8c9 > > is causing this build failure: > > http://kisskb.ellerman.id.au/kisskb/buildresult/24375/ It looks like it. i2c-core needs to be compiled static for the OF bindings to work. I guess in Kconfig "depends on OF && I2C" must be changed into "depends on OF && (I2C=y)" On the other hand, i didn't test the patch without the dependent patches, so it might not work as expected: http://patchwork.ozlabs.org/linuxppc/patch?id=17833 http://patchwork.ozlabs.org/linuxppc/patch?id=17834 or the original ones from Jean Delvare: http://patchwork.ozlabs.org/linuxppc/patch?id=16282 http://patchwork.ozlabs.org/linuxppc/patch?id=16283 http://patchwork.ozlabs.org/linuxppc/patch?id=16284 Thanks, Jochen ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <48071778.2000405-NIgtFMG+Po8@public.gmane.org>]
* Re: build breakage from of i2c helper patch [not found] ` <48071778.2000405-NIgtFMG+Po8@public.gmane.org> @ 2008-04-17 9:37 ` Jean Delvare [not found] ` <20080417113703.0f24c578-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Jean Delvare @ 2008-04-17 9:37 UTC (permalink / raw) To: Jochen Friedrich Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org list, Stephen Rothwell, Paul Mackerras, Kumar Gala, Linux I2C On Thu, 17 Apr 2008 11:25:12 +0200, Jochen Friedrich wrote: > It looks like it. i2c-core needs to be compiled static for the OF bindings to work. > I guess in Kconfig "depends on OF && I2C" must be changed into "depends on OF && (I2C=y)" (blind shot) Maybe this means that some code that is in i2c-core should be moved to i2c-boardinfo instead? i2c-boardinfo is always built into the kernel even when i2c-core is modular. -- Jean Delvare _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20080417113703.0f24c578-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>]
* Re: build breakage from of i2c helper patch [not found] ` <20080417113703.0f24c578-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> @ 2008-04-18 12:27 ` Jochen Friedrich 0 siblings, 0 replies; 6+ messages in thread From: Jochen Friedrich @ 2008-04-18 12:27 UTC (permalink / raw) To: Jean Delvare Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org list, Stephen Rothwell, Paul Mackerras, Kumar Gala, Linux I2C Hi Jean, > (blind shot) Maybe this means that some code that is in i2c-core should > be moved to i2c-boardinfo instead? i2c-boardinfo is always built into > the kernel even when i2c-core is modular. unfortunately, i2c_new_device() tries to attach the module, so this function really needs full i2c-core functionality. I think the best way to fix this is to make the OF helpers def_tristate I2C, so it will be compiled as module if i2c-core is compiled as module, as well. I'll send an updated patch in a minute. Thanks, Jochen _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: build breakage from of i2c helper patch 2008-04-17 9:25 ` Jochen Friedrich [not found] ` <48071778.2000405-NIgtFMG+Po8@public.gmane.org> @ 2008-04-18 11:27 ` Paul Mackerras [not found] ` <18440.34234.28845.7398-UYQwCShxghk5kJ7NmlRacFaTQe2KTcn/@public.gmane.org> 1 sibling, 1 reply; 6+ messages in thread From: Paul Mackerras @ 2008-04-18 11:27 UTC (permalink / raw) To: Jochen Friedrich Cc: Stephen Rothwell, Linux I2C, linuxppc-dev@ozlabs.org list Jochen Friedrich writes: > It looks like it. i2c-core needs to be compiled static for the OF > bindings to work. > I guess in Kconfig "depends on OF && I2C" must be changed into > "depends on OF && (I2C=y)" > > On the other hand, i didn't test the patch without the dependent > patches, so it might not work as expected: Which way around is this dependency? Do you mean that the patches you listed depend on the "OF helpers for the i2c API" patch, or that the OF helpers patch depends on these other ones? > http://patchwork.ozlabs.org/linuxppc/patch?id=17833 > http://patchwork.ozlabs.org/linuxppc/patch?id=17834 > > or the original ones from Jean Delvare: > > http://patchwork.ozlabs.org/linuxppc/patch?id=16282 > http://patchwork.ozlabs.org/linuxppc/patch?id=16283 > http://patchwork.ozlabs.org/linuxppc/patch?id=16284 What's the best way to fix this now? We need to get a reasonable fix in before I ask Linux to pull the powerpc tree. Paul. ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <18440.34234.28845.7398-UYQwCShxghk5kJ7NmlRacFaTQe2KTcn/@public.gmane.org>]
* Re: build breakage from of i2c helper patch [not found] ` <18440.34234.28845.7398-UYQwCShxghk5kJ7NmlRacFaTQe2KTcn/@public.gmane.org> @ 2008-04-18 12:35 ` Jochen Friedrich 0 siblings, 0 replies; 6+ messages in thread From: Jochen Friedrich @ 2008-04-18 12:35 UTC (permalink / raw) To: Paul Mackerras Cc: Stephen Rothwell, Kumar Gala, Linux I2C, linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org list Hi Paul, > Which way around is this dependency? Do you mean that the patches you > listed depend on the "OF helpers for the i2c API" patch, or that the > OF helpers patch depends on these other ones? The OF helpers patch depends on the patches below to support autoloading i2c modules using the alias mechanism. Otherwise, we need to translate between i2c module type and driver_name in the helper patch (like currently done in fsl_soc.c function of_find_i2c_driver()). However, this old way doesn't really scale well. > >> http://patchwork.ozlabs.org/linuxppc/patch?id=17833 >> http://patchwork.ozlabs.org/linuxppc/patch?id=17834 >> >> or the original ones from Jean Delvare: >> >> http://patchwork.ozlabs.org/linuxppc/patch?id=16282 >> http://patchwork.ozlabs.org/linuxppc/patch?id=16283 >> http://patchwork.ozlabs.org/linuxppc/patch?id=16284 > > What's the best way to fix this now? We need to get a reasonable fix > in before I ask Linux to pull the powerpc tree. Thanks, Jochen _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-04-18 12:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-17 7:11 build breakage from of i2c helper patch Kumar Gala
2008-04-17 9:25 ` Jochen Friedrich
[not found] ` <48071778.2000405-NIgtFMG+Po8@public.gmane.org>
2008-04-17 9:37 ` Jean Delvare
[not found] ` <20080417113703.0f24c578-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-04-18 12:27 ` Jochen Friedrich
2008-04-18 11:27 ` Paul Mackerras
[not found] ` <18440.34234.28845.7398-UYQwCShxghk5kJ7NmlRacFaTQe2KTcn/@public.gmane.org>
2008-04-18 12:35 ` Jochen Friedrich
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox