* linux-next: manual merge of the sound tree with the omap tree
@ 2009-11-13 2:19 Stephen Rothwell
2009-11-13 12:39 ` Mark Brown
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2009-11-13 2:19 UTC (permalink / raw)
To: Takashi Iwai
Cc: linux-next, linux-kernel, Peter Ujfalusi, Mark Brown,
vikram pandita
Hi Takashi,
Today's linux-next merge of the sound tree got a conflict in
arch/arm/mach-omap2/board-zoom2.c between commit
3541a57ebeb4c817e6e25bb0c2a2c174d6edb7c4 ("omap: zoom2: split board file
for software reuse") from the omap tree and commits
f8d9aad96d0d7b57d0bf2e4de21fdda3a42f4449 ("OMAP: Platform support for
twl4030_codec MFD") and 953e2f3d272db9db6671ad4f4244820557a71cf7 ("OMAP:
Configure audio_mclk for twl4030-codec MFD") from the sound tree.
The former moved the code that the latter modifies into another file. I
have added the following merge fixup patch and can carry it as necessary.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 13 Nov 2009 13:17:56 +1100
Subject: [PATCH] sound: merger fixup for omap board-zoom2 updates
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/arm/mach-omap2/board-zoom-peripherals.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c
index 54619d5..f570949 100755
--- a/arch/arm/mach-omap2/board-zoom-peripherals.c
+++ b/arch/arm/mach-omap2/board-zoom-peripherals.c
@@ -217,6 +217,15 @@ static struct twl4030_madc_platform_data zoom_madc_data = {
.irq_line = 1,
};
+static struct twl4030_codec_audio_data zoom2_audio_data = {
+ .audio_mclk = 26000000,
+};
+
+static struct twl4030_codec_data zoom2_codec_data = {
+ .audio_mclk = 26000000,
+ .audio = &zoom2_audio_data,
+};
+
static struct twl4030_platform_data zoom_twldata = {
.irq_base = TWL4030_IRQ_BASE,
.irq_end = TWL4030_IRQ_END,
@@ -227,6 +236,7 @@ static struct twl4030_platform_data zoom_twldata = {
.usb = &zoom_usb_data,
.gpio = &zoom_gpio_data,
.keypad = &zoom_kp_twl4030_data,
+ .codec = &zoom2_codec_data,
.vmmc1 = &zoom_vmmc1,
.vmmc2 = &zoom_vmmc2,
.vsim = &zoom_vsim,
--
1.6.5.2
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: linux-next: manual merge of the sound tree with the omap tree
2009-11-13 2:19 linux-next: manual merge of the sound tree with the omap tree Stephen Rothwell
@ 2009-11-13 12:39 ` Mark Brown
2009-11-13 13:06 ` Takashi Iwai
0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2009-11-13 12:39 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Takashi Iwai, linux-next, linux-kernel, Peter Ujfalusi,
vikram pandita, Tony Lindgren
On Fri, Nov 13, 2009 at 01:19:47PM +1100, Stephen Rothwell wrote:
> Today's linux-next merge of the sound tree got a conflict in
> arch/arm/mach-omap2/board-zoom2.c between commit
> 3541a57ebeb4c817e6e25bb0c2a2c174d6edb7c4 ("omap: zoom2: split board file
> for software reuse") from the omap tree and commits
> f8d9aad96d0d7b57d0bf2e4de21fdda3a42f4449 ("OMAP: Platform support for
> twl4030_codec MFD") and 953e2f3d272db9db6671ad4f4244820557a71cf7 ("OMAP:
> Configure audio_mclk for twl4030-codec MFD") from the sound tree.
> The former moved the code that the latter modifies into another file. I
> have added the following merge fixup patch and can carry it as necessary.
Adding Tony for the OMAP tree - as discussed previously you could merge
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git twl4030-mfd
into the OMAP tree to resolve this. There's some older ASoC changes in
there to ensure the patches applied but I'm happy for you to carry those
providing Takashi is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: manual merge of the sound tree with the omap tree
2009-11-13 12:39 ` Mark Brown
@ 2009-11-13 13:06 ` Takashi Iwai
2009-11-13 13:11 ` Mark Brown
0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2009-11-13 13:06 UTC (permalink / raw)
To: Mark Brown
Cc: Stephen Rothwell, linux-next, linux-kernel, Peter Ujfalusi,
vikram pandita, Tony Lindgren
At Fri, 13 Nov 2009 12:39:01 +0000,
Mark Brown wrote:
>
> On Fri, Nov 13, 2009 at 01:19:47PM +1100, Stephen Rothwell wrote:
>
> > Today's linux-next merge of the sound tree got a conflict in
> > arch/arm/mach-omap2/board-zoom2.c between commit
> > 3541a57ebeb4c817e6e25bb0c2a2c174d6edb7c4 ("omap: zoom2: split board file
> > for software reuse") from the omap tree and commits
> > f8d9aad96d0d7b57d0bf2e4de21fdda3a42f4449 ("OMAP: Platform support for
> > twl4030_codec MFD") and 953e2f3d272db9db6671ad4f4244820557a71cf7 ("OMAP:
> > Configure audio_mclk for twl4030-codec MFD") from the sound tree.
>
> > The former moved the code that the latter modifies into another file. I
> > have added the following merge fixup patch and can carry it as necessary.
>
> Adding Tony for the OMAP tree - as discussed previously you could merge
>
> git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git twl4030-mfd
>
> into the OMAP tree to resolve this. There's some older ASoC changes in
> there to ensure the patches applied but I'm happy for you to carry those
> providing Takashi is.
I can merge the tree above to for-next branch of sound git tree, too.
In that way, we can keep asoc branches clean.
thanks,
Takashi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: manual merge of the sound tree with the omap tree
2009-11-13 13:06 ` Takashi Iwai
@ 2009-11-13 13:11 ` Mark Brown
2009-11-13 13:14 ` Takashi Iwai
0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2009-11-13 13:11 UTC (permalink / raw)
To: Takashi Iwai
Cc: Stephen Rothwell, linux-next, linux-kernel, Peter Ujfalusi,
vikram pandita, Tony Lindgren
On Fri, Nov 13, 2009 at 02:06:44PM +0100, Takashi Iwai wrote:
> Mark Brown wrote:
> > into the OMAP tree to resolve this. There's some older ASoC changes in
> > there to ensure the patches applied but I'm happy for you to carry those
> > providing Takashi is.
> I can merge the tree above to for-next branch of sound git tree, too.
> In that way, we can keep asoc branches clean.
I believe that creates the same problem both ways :/ . If we merge
OMAP->sound we may as well put it on the ASoC topic branch, it'll
probably be helpful for people doing OMAP work anyway.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: manual merge of the sound tree with the omap tree
2009-11-13 13:11 ` Mark Brown
@ 2009-11-13 13:14 ` Takashi Iwai
2009-11-13 20:44 ` Tony Lindgren
0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2009-11-13 13:14 UTC (permalink / raw)
To: Mark Brown
Cc: Stephen Rothwell, linux-next, linux-kernel, Peter Ujfalusi,
vikram pandita, Tony Lindgren
At Fri, 13 Nov 2009 13:11:48 +0000,
Mark Brown wrote:
>
> On Fri, Nov 13, 2009 at 02:06:44PM +0100, Takashi Iwai wrote:
> > Mark Brown wrote:
>
> > > into the OMAP tree to resolve this. There's some older ASoC changes in
> > > there to ensure the patches applied but I'm happy for you to carry those
> > > providing Takashi is.
>
> > I can merge the tree above to for-next branch of sound git tree, too.
> > In that way, we can keep asoc branches clean.
>
> I believe that creates the same problem both ways :/ . If we merge
> OMAP->sound we may as well put it on the ASoC topic branch, it'll
> probably be helpful for people doing OMAP work anyway.
OK, in both ways I don't care...
thanks,
Takashi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: manual merge of the sound tree with the omap tree
2009-11-13 13:14 ` Takashi Iwai
@ 2009-11-13 20:44 ` Tony Lindgren
2009-11-14 3:02 ` Tony Lindgren
0 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2009-11-13 20:44 UTC (permalink / raw)
To: Takashi Iwai
Cc: Mark Brown, Stephen Rothwell, linux-next, linux-kernel,
Peter Ujfalusi, vikram pandita
* Takashi Iwai <tiwai@suse.de> [091113 05:13]:
> At Fri, 13 Nov 2009 13:11:48 +0000,
> Mark Brown wrote:
> >
> > On Fri, Nov 13, 2009 at 02:06:44PM +0100, Takashi Iwai wrote:
> > > Mark Brown wrote:
> >
> > > > into the OMAP tree to resolve this. There's some older ASoC changes in
> > > > there to ensure the patches applied but I'm happy for you to carry those
> > > > providing Takashi is.
> >
> > > I can merge the tree above to for-next branch of sound git tree, too.
> > > In that way, we can keep asoc branches clean.
> >
> > I believe that creates the same problem both ways :/ . If we merge
> > OMAP->sound we may as well put it on the ASoC topic branch, it'll
> > probably be helpful for people doing OMAP work anyway.
>
> OK, in both ways I don't care...
I think this should get resolved if I git cherry-pick the following
commits to linux-omap for-next:
MFD: twl4030: add twl4030_codec MFD as a new child to the core
0b83ddebc6e884dc0221358cf68c461520fbdd8e
OMAP: Platform support for twl4030_codec MFD
f8d9aad96d0d7b57d0bf2e4de21fdda3a42f4449
OMAP: Configure audio_mclk for twl4030-codec MFD
953e2f3d272db9db6671ad4f4244820557a71cf7
Then I can tweak the sdp and zoom patches accordingly. So let's try
that first, I'll try it out today.
Regards,
Tony
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: manual merge of the sound tree with the omap tree
2009-11-13 20:44 ` Tony Lindgren
@ 2009-11-14 3:02 ` Tony Lindgren
0 siblings, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2009-11-14 3:02 UTC (permalink / raw)
To: Takashi Iwai
Cc: Mark Brown, Stephen Rothwell, linux-next, linux-kernel,
Peter Ujfalusi, vikram pandita, linux-omap
* Tony Lindgren <tony@atomide.com> [091113 12:44]:
> * Takashi Iwai <tiwai@suse.de> [091113 05:13]:
> > At Fri, 13 Nov 2009 13:11:48 +0000,
> > Mark Brown wrote:
> > >
> > > On Fri, Nov 13, 2009 at 02:06:44PM +0100, Takashi Iwai wrote:
> > > > Mark Brown wrote:
> > >
> > > > > into the OMAP tree to resolve this. There's some older ASoC changes in
> > > > > there to ensure the patches applied but I'm happy for you to carry those
> > > > > providing Takashi is.
> > >
> > > > I can merge the tree above to for-next branch of sound git tree, too.
> > > > In that way, we can keep asoc branches clean.
> > >
> > > I believe that creates the same problem both ways :/ . If we merge
> > > OMAP->sound we may as well put it on the ASoC topic branch, it'll
> > > probably be helpful for people doing OMAP work anyway.
> >
> > OK, in both ways I don't care...
>
> I think this should get resolved if I git cherry-pick the following
> commits to linux-omap for-next:
>
> MFD: twl4030: add twl4030_codec MFD as a new child to the core
> 0b83ddebc6e884dc0221358cf68c461520fbdd8e
>
> OMAP: Platform support for twl4030_codec MFD
> f8d9aad96d0d7b57d0bf2e4de21fdda3a42f4449
>
> OMAP: Configure audio_mclk for twl4030-codec MFD
> 953e2f3d272db9db6671ad4f4244820557a71cf7
>
> Then I can tweak the sdp and zoom patches accordingly. So let's try
> that first, I'll try it out today.
OK, I ended up cherry-picking the following MFD commits to keep things
compiling:
$ git cherry-pick 0b83ddebc6e884dc0221358cf68c461520fbdd8e
$ git cherry-pick f8d9aad96d0d7b57d0bf2e4de21fdda3a42f4449
$ git cherry-pick cfd5324e699a2e74a44642d43dcf03d581f2a7db
$ git cherry-pick 953e2f3d272db9db6671ad4f4244820557a71cf7
$ git cherry-pick f9b4639e045c750e2bad37462476403995508350
Then I made the following changes to linux-omap for-next branch.
I will revert these changes as a fix after the merge window.
Without the patch below, there will still be conflicts. And
git mergetool ends up adding back the non-compiling entries
to board-zoom2.c.
But with the patch things work. So pulling
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 twl4030-mfd
to linux-omap for-next branch does not cause conflicts. So hopefully
it now works for Stephen too.
Regards,
Tony
--- b/arch/arm/mach-omap2/board-omap3evm.c
+++ a/arch/arm/mach-omap2/board-omap3evm.c
@@ -308,8 +308,6 @@ static struct twl4030_platform_data omap3evm_twldata = {
.usb = &omap3evm_usb_data,
.gpio = &omap3evm_gpio_data,
.codec = &omap3evm_codec_data,
- .vmmc1 = &omap3evm_vmmc1,
- .vsim = &omap3evm_vsim,
};
static struct i2c_board_info __initdata omap3evm_i2c_boardinfo[] = {
@@ -323,6 +321,13 @@ static struct i2c_board_info __initdata omap3evm_i2c_boardinfo[] = {
static int __init omap3_evm_i2c_init(void)
{
+ /*
+ * REVISIT: These entries can be set in omap3evm_twl_data
+ * after a merge with MFD tree
+ */
+ omap3evm_twldata.vmmc1 = &omap3evm_vmmc1;
+ omap3evm_twldata.vsim = &omap3evm_vsim;
+
omap_register_i2c_bus(1, 2600, omap3evm_i2c_boardinfo,
ARRAY_SIZE(omap3evm_i2c_boardinfo));
omap_register_i2c_bus(2, 400, NULL, 0);
diff --git b/arch/arm/mach-omap2/board-zoom2.c a/arch/arm/mach-omap2/board-zoom2.c
index 3e88fcc..f2e66f3 100644
--- b/arch/arm/mach-omap2/board-zoom2.c
+++ a/arch/arm/mach-omap2/board-zoom2.c
@@ -36,6 +36,31 @@ static void __init omap_zoom2_init_irq(void)
omap_gpio_init();
}
+/* REVISIT: These audio entries can be removed once MFD code is merged */
+#if 0
+
+static struct twl4030_madc_platform_data zoom2_madc_data = {
+ .irq_line = 1,
+};
+
+static struct twl4030_platform_data zoom2_twldata = {
+ .irq_base = TWL4030_IRQ_BASE,
+ .irq_end = TWL4030_IRQ_END,
+
+ /* platform_data for children goes here */
+ .bci = &zoom2_bci_data,
+ .madc = &zoom2_madc_data,
+ .usb = &zoom2_usb_data,
+ .gpio = &zoom2_gpio_data,
+ .keypad = &zoom2_kp_twl4030_data,
+ .vmmc1 = &zoom2_vmmc1,
+ .vmmc2 = &zoom2_vmmc2,
+ .vsim = &zoom2_vsim,
+
+};
+
+#endif
+
extern int __init omap_zoom2_debugboard_init(void);
extern void __init zoom_peripherals_init(void);
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-14 3:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-13 2:19 linux-next: manual merge of the sound tree with the omap tree Stephen Rothwell
2009-11-13 12:39 ` Mark Brown
2009-11-13 13:06 ` Takashi Iwai
2009-11-13 13:11 ` Mark Brown
2009-11-13 13:14 ` Takashi Iwai
2009-11-13 20:44 ` Tony Lindgren
2009-11-14 3:02 ` Tony Lindgren
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).