linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 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@ozlabs.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

^ 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
  2008-04-17  9:37   ` Jean Delvare
  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

* Re: build breakage from of i2c helper patch
  2008-04-17  9:25 ` Jochen Friedrich
@ 2008-04-17  9:37   ` Jean Delvare
  2008-04-18 12:27     ` Jochen Friedrich
  2008-04-18 11:27   ` Paul Mackerras
  1 sibling, 1 reply; 6+ messages in thread
From: Jean Delvare @ 2008-04-17  9:37 UTC (permalink / raw)
  To: Jochen Friedrich
  Cc: linuxppc-dev@ozlabs.org list, Stephen Rothwell, Paul Mackerras,
	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

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

* Re: build breakage from of i2c helper patch
  2008-04-17  9:25 ` Jochen Friedrich
  2008-04-17  9:37   ` Jean Delvare
@ 2008-04-18 11:27   ` Paul Mackerras
  2008-04-18 12:35     ` Jochen Friedrich
  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

* Re: build breakage from of i2c helper patch
  2008-04-17  9:37   ` Jean Delvare
@ 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@ozlabs.org list, Stephen Rothwell, Paul Mackerras,
	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

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

* Re: build breakage from of i2c helper patch
  2008-04-18 11:27   ` Paul Mackerras
@ 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, Linux I2C, linuxppc-dev@ozlabs.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

^ 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
2008-04-17  9:37   ` Jean Delvare
2008-04-18 12:27     ` Jochen Friedrich
2008-04-18 11:27   ` Paul Mackerras
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;
as well as URLs for NNTP newsgroup(s).