* [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
@ 2008-04-18 14:23 Jochen Friedrich
2008-04-19 4:04 ` Paul Mackerras
0 siblings, 1 reply; 8+ messages in thread
From: Jochen Friedrich @ 2008-04-18 14:23 UTC (permalink / raw)
To: Kumar Gala
Cc: Stephen Rothwell, linuxppc-dev list, Kernel, Linux, Scott Wood,
Paul Mackerras, Jean Delvare, David Miller, Linux I2C
Fix build breakage introduced in commit
"[POWERPC] i2c: OF helpers for the i2c API".
If i2c-core is compiled as module, the helper needs to be
compiled as module, as well. Rename i2c.c to of_i2c.c to
avoid name space conflict.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
---
drivers/of/Kconfig | 2 +-
drivers/of/Makefile | 2 +-
drivers/of/{i2c.c => of_i2c.c} | 0
3 files changed, 2 insertions(+), 2 deletions(-)
rename drivers/of/{i2c.c => of_i2c.c} (100%)
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 7c30531..0e39f00 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -9,7 +9,7 @@ config OF_GPIO
OpenFirmware GPIO accessors
config OF_I2C
- def_bool y
+ def_tristate I2C
depends on OF && I2C
help
OpenFirmware I2C accessors
diff --git a/drivers/of/Makefile b/drivers/of/Makefile
index a07b953..548772e 100644
--- a/drivers/of/Makefile
+++ b/drivers/of/Makefile
@@ -1,4 +1,4 @@
obj-y = base.o
obj-$(CONFIG_OF_DEVICE) += device.o platform.o
obj-$(CONFIG_OF_GPIO) += gpio.o
-obj-$(CONFIG_OF_I2C) += i2c.o
+obj-$(CONFIG_OF_I2C) += of_i2c.o
diff --git a/drivers/of/i2c.c b/drivers/of/of_i2c.c
similarity index 100%
rename from drivers/of/i2c.c
rename to drivers/of/of_i2c.c
--
1.5.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
2008-04-18 14:23 [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers Jochen Friedrich
@ 2008-04-19 4:04 ` Paul Mackerras
2008-04-19 4:09 ` David Miller
0 siblings, 1 reply; 8+ messages in thread
From: Paul Mackerras @ 2008-04-19 4:04 UTC (permalink / raw)
To: Jochen Friedrich
Cc: Stephen Rothwell, linuxppc-dev list, Kernel, Linux, Scott Wood,
Linux I2C, Jean Delvare, David Miller
Jochen Friedrich writes:
> Fix build breakage introduced in commit
> "[POWERPC] i2c: OF helpers for the i2c API".
> If i2c-core is compiled as module, the helper needs to be
> compiled as module, as well. Rename i2c.c to of_i2c.c to
> avoid name space conflict.
Actually, since only powerpc has irq_of_parse_and_map, I'm now
inclined to think that drivers/of/i2c.c should live under arch/powerpc
for now, or at the least its option should depend on PPC_OF.
Paul.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
2008-04-19 4:04 ` Paul Mackerras
@ 2008-04-19 4:09 ` David Miller
2008-04-19 5:22 ` Paul Mackerras
0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2008-04-19 4:09 UTC (permalink / raw)
To: paulus; +Cc: sfr, linux-kernel, linuxppc-dev, i2c, scottwood, khali
From: Paul Mackerras <paulus@samba.org>
Date: Sat, 19 Apr 2008 14:04:32 +1000
> Jochen Friedrich writes:
>
> > Fix build breakage introduced in commit
> > "[POWERPC] i2c: OF helpers for the i2c API".
> > If i2c-core is compiled as module, the helper needs to be
> > compiled as module, as well. Rename i2c.c to of_i2c.c to
> > avoid name space conflict.
>
> Actually, since only powerpc has irq_of_parse_and_map, I'm now
> inclined to think that drivers/of/i2c.c should live under arch/powerpc
> for now, or at the least its option should depend on PPC_OF.
I specifically asked for this to not be PPC only so that I
can make use of this infrastructure on sparc64 for I2C devices.
It's OK if this breaks the sparc64 allmodconfig build, I'll take
care of this once it's merged in.
Please merge the PPC tree to Linus soon, so that I can merge
in my sparc64 NUMA bits which depend upon the LMB changesets
in the PPC tree.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
2008-04-19 4:09 ` David Miller
@ 2008-04-19 5:22 ` Paul Mackerras
2008-04-19 6:11 ` David Miller
0 siblings, 1 reply; 8+ messages in thread
From: Paul Mackerras @ 2008-04-19 5:22 UTC (permalink / raw)
To: David Miller; +Cc: sfr, linux-kernel, linuxppc-dev, i2c, scottwood, khali
David Miller writes:
> From: Paul Mackerras <paulus@samba.org>
> Date: Sat, 19 Apr 2008 14:04:32 +1000
>
> > Jochen Friedrich writes:
> >
> > > Fix build breakage introduced in commit
> > > "[POWERPC] i2c: OF helpers for the i2c API".
> > > If i2c-core is compiled as module, the helper needs to be
> > > compiled as module, as well. Rename i2c.c to of_i2c.c to
> > > avoid name space conflict.
> >
> > Actually, since only powerpc has irq_of_parse_and_map, I'm now
> > inclined to think that drivers/of/i2c.c should live under arch/powerpc
> > for now, or at the least its option should depend on PPC_OF.
>
> I specifically asked for this to not be PPC only so that I
> can make use of this infrastructure on sparc64 for I2C devices.
OK.
> It's OK if this breaks the sparc64 allmodconfig build, I'll take
> care of this once it's merged in.
It breaks the sparc32 allmodconfig build, which seems to be a
concern. How do you suggest we fix that?
> Please merge the PPC tree to Linus soon, so that I can merge
> in my sparc64 NUMA bits which depend upon the LMB changesets
> in the PPC tree.
Sure, it's just this sparc32 breakage which is holding me up.
Paul.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
2008-04-19 5:22 ` Paul Mackerras
@ 2008-04-19 6:11 ` David Miller
2008-04-19 9:09 ` Jean Delvare
0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2008-04-19 6:11 UTC (permalink / raw)
To: paulus; +Cc: sfr, linux-kernel, linuxppc-dev, i2c, scottwood, khali
From: Paul Mackerras <paulus@samba.org>
Date: Sat, 19 Apr 2008 15:22:37 +1000
> David Miller writes:
> > From: Paul Mackerras <paulus@samba.org>
> > Date: Sat, 19 Apr 2008 14:04:32 +1000
> >
> > It's OK if this breaks the sparc64 allmodconfig build, I'll take
> > care of this once it's merged in.
>
> It breaks the sparc32 allmodconfig build, which seems to be a
> concern. How do you suggest we fix that?
I'll fix both sparc64 and sparc32 builds when I merge my sparc
tree in.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
2008-04-19 6:11 ` David Miller
@ 2008-04-19 9:09 ` Jean Delvare
2008-04-19 9:12 ` David Miller
2008-04-19 11:45 ` Paul Mackerras
0 siblings, 2 replies; 8+ messages in thread
From: Jean Delvare @ 2008-04-19 9:09 UTC (permalink / raw)
To: David Miller; +Cc: sfr, linux-kernel, linuxppc-dev, paulus, i2c, scottwood
On Fri, 18 Apr 2008 23:11:28 -0700 (PDT), David Miller wrote:
> From: Paul Mackerras <paulus@samba.org>
> Date: Sat, 19 Apr 2008 15:22:37 +1000
>
> > David Miller writes:
> > > From: Paul Mackerras <paulus@samba.org>
> > > Date: Sat, 19 Apr 2008 14:04:32 +1000
> > >
> > > It's OK if this breaks the sparc64 allmodconfig build, I'll take
> > > care of this once it's merged in.
> >
> > It breaks the sparc32 allmodconfig build, which seems to be a
> > concern. How do you suggest we fix that?
>
> I'll fix both sparc64 and sparc32 builds when I merge my sparc
> tree in.
Guys, you're doing things the wrong way around. Breaking things to fix
them later is not OK, it's a pain for testers and also when bisecting
the kernel. Everything should still work after merging the powerpc
tree. Dave, if you need to loosen the dependency, you should do it
yourself _after_ having changed whatever needs to be in the sparc32 and
sparc64 trees so that loosening the dependency doesn't break anything.
As far as I can see it's only a matter of changing one line in a
Kconfig file, that's not exactly difficult to do it in the right order.
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
2008-04-19 9:09 ` Jean Delvare
@ 2008-04-19 9:12 ` David Miller
2008-04-19 11:45 ` Paul Mackerras
1 sibling, 0 replies; 8+ messages in thread
From: David Miller @ 2008-04-19 9:12 UTC (permalink / raw)
To: khali; +Cc: sfr, linux-kernel, linuxppc-dev, paulus, i2c, scottwood
From: Jean Delvare <khali@linux-fr.org>
Date: Sat, 19 Apr 2008 11:09:34 +0200
> Guys, you're doing things the wrong way around. Breaking things to fix
> them later is not OK, it's a pain for testers and also when bisecting
> the kernel. Everything should still work after merging the powerpc
> tree. Dave, if you need to loosen the dependency, you should do it
> yourself _after_ having changed whatever needs to be in the sparc32 and
> sparc64 trees so that loosening the dependency doesn't break anything.
> As far as I can see it's only a matter of changing one line in a
> Kconfig file, that's not exactly difficult to do it in the right order.
Fair enough.
At least don't move this stuff under arch/powerpc as paulus originally
had suggested.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers
2008-04-19 9:09 ` Jean Delvare
2008-04-19 9:12 ` David Miller
@ 2008-04-19 11:45 ` Paul Mackerras
1 sibling, 0 replies; 8+ messages in thread
From: Paul Mackerras @ 2008-04-19 11:45 UTC (permalink / raw)
To: Jean Delvare
Cc: sfr, linux-kernel, linuxppc-dev, i2c, scottwood, David Miller
Jean Delvare writes:
> Guys, you're doing things the wrong way around. Breaking things to fix
> them later is not OK, it's a pain for testers and also when bisecting
> the kernel. Everything should still work after merging the powerpc
> tree. Dave, if you need to loosen the dependency, you should do it
> yourself _after_ having changed whatever needs to be in the sparc32 and
> sparc64 trees so that loosening the dependency doesn't break anything.
> As far as I can see it's only a matter of changing one line in a
> Kconfig file, that's not exactly difficult to do it in the right order.
You're right. I'll put in a dependency on PPC_OF for now and Dave can
take it out once sparc32/64 have irq_of_parse_and_map etc.
Paul.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-04-19 11:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-18 14:23 [PATCH] [POWERPC] i2c: fix build breakage introduced by OF helpers Jochen Friedrich
2008-04-19 4:04 ` Paul Mackerras
2008-04-19 4:09 ` David Miller
2008-04-19 5:22 ` Paul Mackerras
2008-04-19 6:11 ` David Miller
2008-04-19 9:09 ` Jean Delvare
2008-04-19 9:12 ` David Miller
2008-04-19 11:45 ` Paul Mackerras
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).