public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* Patch Merging Path - RMK or Arnd?
@ 2011-08-19 12:49 Will Deacon
  2011-08-19 14:21 ` Arnd Bergmann
  0 siblings, 1 reply; 6+ messages in thread
From: Will Deacon @ 2011-08-19 12:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Arnd,

In general, I merge my patches via Russell as they tend to be core ARM changes.
This works very well since other (potentially conflicting) changes follow
the same route and any conflicts would be noticed almost immediately.

However, I currently have two patchsets that I'm developing which alter both
core ARM code *and* touch a number of platforms to use the new core
features:

http://lists.infradead.org/pipermail/linux-arm-kernel/2011-August/061304.html

http://lists.infradead.org/pipermail/linux-arm-kernel/2011-August/061477.html

Ideally, I would also merge these via Russell, but there is now scope for
conflict with your arm-soc branch given that I'm changing files under mach-*
and plat-*. How would you recommend that I proceed? I can think of three
solutions:


(1) [preferred] Merge via Russell, conflicts show up in -next and are
    resolved then.

(2) Split the patches up so that the core changes go via Russell. When they
    are in a suitable tree (-next?) then send you the remainder on top of
    that.

(3) Merge the whole lot via you. This really just inverts the problem rather
    than solving anything.


I expect this will become a fairly common pattern with single zImage work,
so it would be great to clarify the intended path upstream.

Cheers,

Will

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

* Patch Merging Path - RMK or Arnd?
  2011-08-19 12:49 Patch Merging Path - RMK or Arnd? Will Deacon
@ 2011-08-19 14:21 ` Arnd Bergmann
  2011-08-19 14:45   ` Will Deacon
  0 siblings, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2011-08-19 14:21 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday 19 August 2011, Will Deacon wrote:
> Ideally, I would also merge these via Russell, but there is now scope for
> conflict with your arm-soc branch given that I'm changing files under mach-*
> and plat-*. How would you recommend that I proceed? I can think of three
> solutions:
> 
> 
> (1) [preferred] Merge via Russell, conflicts show up in -next and are
>     resolved then.
> 
> (2) Split the patches up so that the core changes go via Russell. When they
>     are in a suitable tree (-next?) then send you the remainder on top of
>     that.
> 
> (3) Merge the whole lot via you. This really just inverts the problem rather
>     than solving anything.
> 
> 
> I expect this will become a fairly common pattern with single zImage work,
> so it would be great to clarify the intended path upstream.

There is another options, which is to have the changes in both trees, or
at least have some of the changes in both.

Fortunately, git can handle merges of that sort just fine, so I'd say
depending on the contents you do one of:

(4) Split up the changesets into a core set (for the arch directory) and
    a second set that goes on top and changes all the platforms. Get
    Russell to take the base patches into one branch, and submit the
    branch containing the full set (including the ones in Russell's
    tree) for the arm-soc tree. I will then make sure queue the changes
    for merging to Linus after he has taken the base changes from
    Russell.

(5) Prepare one git tree and submit it to both trees at once. If everyone
    is happy with the changes, we just apply it to both and one of us
    submits it first.
    Either tree can also contain further changes on top, so if your
    changes are already upstream through one tree, the second pull request
    from the other tree will contain the other changes that go on top.

This is really not much different to dependencies on any other tree,
e.g. when the gpio subsystem has some changes that are required for
platform specific changes that go through the arm-soc tree.

	Arnd

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

* Patch Merging Path - RMK or Arnd?
  2011-08-19 14:21 ` Arnd Bergmann
@ 2011-08-19 14:45   ` Will Deacon
  2011-08-20 21:23     ` Arnd Bergmann
  0 siblings, 1 reply; 6+ messages in thread
From: Will Deacon @ 2011-08-19 14:45 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Arnd,

Thanks for the reply.

On Fri, Aug 19, 2011 at 03:21:56PM +0100, Arnd Bergmann wrote:
> On Friday 19 August 2011, Will Deacon wrote:
> > Ideally, I would also merge these via Russell, but there is now scope for
> > conflict with your arm-soc branch given that I'm changing files under mach-*
> > and plat-*. How would you recommend that I proceed? I can think of three
> > solutions:
> > 
> > 
> > (1) [preferred] Merge via Russell, conflicts show up in -next and are
> >     resolved then.
> > 
> > (2) Split the patches up so that the core changes go via Russell. When they
> >     are in a suitable tree (-next?) then send you the remainder on top of
> >     that.
> > 
> > (3) Merge the whole lot via you. This really just inverts the problem rather
> >     than solving anything.
> > 
> > 
> > I expect this will become a fairly common pattern with single zImage work,
> > so it would be great to clarify the intended path upstream.
> 
> There is another options, which is to have the changes in both trees, or
> at least have some of the changes in both.

Ok, I hadn't considered that.

> Fortunately, git can handle merges of that sort just fine, so I'd say
> depending on the contents you do one of:
> 
> (4) Split up the changesets into a core set (for the arch directory) and
>     a second set that goes on top and changes all the platforms. Get
>     Russell to take the base patches into one branch, and submit the
>     branch containing the full set (including the ones in Russell's
>     tree) for the arm-soc tree. I will then make sure queue the changes
>     for merging to Linus after he has taken the base changes from
>     Russell.
> 
> (5) Prepare one git tree and submit it to both trees at once. If everyone
>     is happy with the changes, we just apply it to both and one of us
>     submits it first.
>     Either tree can also contain further changes on top, so if your
>     changes are already upstream through one tree, the second pull request
>     from the other tree will contain the other changes that go on top.

That's (5) probably easiest, because then you can be sure that the patches
in each upstream tree are identical.

Russell - would you be happy with this arrangment for patchsets that touch
platforms and core ARM code?

Will

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

* Patch Merging Path - RMK or Arnd?
  2011-08-19 14:45   ` Will Deacon
@ 2011-08-20 21:23     ` Arnd Bergmann
  2011-08-21 11:29       ` Will Deacon
  0 siblings, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2011-08-20 21:23 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday 19 August 2011 15:45:51 Will Deacon wrote:
> > Fortunately, git can handle merges of that sort just fine, so I'd say
> > depending on the contents you do one of:
> > 
> > (4) Split up the changesets into a core set (for the arch directory) and
> >     a second set that goes on top and changes all the platforms. Get
> >     Russell to take the base patches into one branch, and submit the
> >     branch containing the full set (including the ones in Russell's
> >     tree) for the arm-soc tree. I will then make sure queue the changes
> >     for merging to Linus after he has taken the base changes from
> >     Russell.
> > 
> > (5) Prepare one git tree and submit it to both trees at once. If everyone
> >     is happy with the changes, we just apply it to both and one of us
> >     submits it first.
> >     Either tree can also contain further changes on top, so if your
> >     changes are already upstream through one tree, the second pull request
> >     from the other tree will contain the other changes that go on top.
> 
> That's (5) probably easiest, because then you can be sure that the patches
> in each upstream tree are identical.

That's the idea with (4) as well. The difference there is that one of the
two trees only contains a subset of the patches, but those are using the
same commit IDs. The other tree has the remaining changes on top of the
common ones.

	Arnd

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

* Patch Merging Path - RMK or Arnd?
  2011-08-20 21:23     ` Arnd Bergmann
@ 2011-08-21 11:29       ` Will Deacon
  2011-08-21 12:49         ` Russell King - ARM Linux
  0 siblings, 1 reply; 6+ messages in thread
From: Will Deacon @ 2011-08-21 11:29 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Aug 20, 2011 at 10:23:22PM +0100, Arnd Bergmann wrote:
> On Friday 19 August 2011 15:45:51 Will Deacon wrote:
> > > Fortunately, git can handle merges of that sort just fine, so I'd say
> > > depending on the contents you do one of:
> > > 
> > > (4) Split up the changesets into a core set (for the arch directory) and
> > >     a second set that goes on top and changes all the platforms. Get
> > >     Russell to take the base patches into one branch, and submit the
> > >     branch containing the full set (including the ones in Russell's
> > >     tree) for the arm-soc tree. I will then make sure queue the changes
> > >     for merging to Linus after he has taken the base changes from
> > >     Russell.
> > > 
> > > (5) Prepare one git tree and submit it to both trees at once. If everyone
> > >     is happy with the changes, we just apply it to both and one of us
> > >     submits it first.
> > >     Either tree can also contain further changes on top, so if your
> > >     changes are already upstream through one tree, the second pull request
> > >     from the other tree will contain the other changes that go on top.
> > 
> > That's (5) probably easiest, because then you can be sure that the patches
> > in each upstream tree are identical.
> 
> That's the idea with (4) as well. The difference there is that one of the
> two trees only contains a subset of the patches, but those are using the
> same commit IDs. The other tree has the remaining changes on top of the
> common ones.

Thinking about this a bit more, (4) can also avoid the situation where one
tree pulls the series but the other tree has reservations about the code and
decides not to take the patches. So, in my case, I could get the core
changes merged by Russell and then send you the full set afterwards.

Will

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

* Patch Merging Path - RMK or Arnd?
  2011-08-21 11:29       ` Will Deacon
@ 2011-08-21 12:49         ` Russell King - ARM Linux
  0 siblings, 0 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2011-08-21 12:49 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Aug 21, 2011 at 12:29:40PM +0100, Will Deacon wrote:
> Thinking about this a bit more, (4) can also avoid the situation where one
> tree pulls the series but the other tree has reservations about the code and
> decides not to take the patches. So, in my case, I could get the core
> changes merged by Russell and then send you the full set afterwards.

I think (4) is the sensible one too.

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

end of thread, other threads:[~2011-08-21 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 12:49 Patch Merging Path - RMK or Arnd? Will Deacon
2011-08-19 14:21 ` Arnd Bergmann
2011-08-19 14:45   ` Will Deacon
2011-08-20 21:23     ` Arnd Bergmann
2011-08-21 11:29       ` Will Deacon
2011-08-21 12:49         ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox