kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Which tree to track: linux-next or staging?
@ 2024-03-09 14:49 Jonathan Bergh
  2024-03-11 13:56 ` Konstantin Ryabitsev
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Bergh @ 2024-03-09 14:49 UTC (permalink / raw)
  To: kernelnewbies

Hi

I have had the opportunity to submit a few patches, which has been
really fun. However, a while back i submitted patches for fixes that i
realised after had already been patched in GregKH tree ... and i
realised i had been developing against Linus's master branch, and not
linux-next.

But my question is, is it better to develop against linux-next or in
newbies cases, one of GregKH's (staging) branches? Maybe
staging/master or staging/staging-next?

If you develop against linux-next, dont you run a pretty big chance of
someone submitting to one of Greg's staging drivers prior to the merge
into linux-next, since patches go to drivers/staging seemingly a lot
more frequently than the merges into linux-next?

Thanks in advance
Cheers
Jon

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* Re: Which tree to track: linux-next or staging?
  2024-03-09 14:49 Which tree to track: linux-next or staging? Jonathan Bergh
@ 2024-03-11 13:56 ` Konstantin Ryabitsev
  2024-03-11 18:48   ` Jonathan Bergh
  0 siblings, 1 reply; 3+ messages in thread
From: Konstantin Ryabitsev @ 2024-03-11 13:56 UTC (permalink / raw)
  To: Jonathan Bergh; +Cc: kernelnewbies

On Sat, Mar 09, 2024 at 03:49:15PM +0100, Jonathan Bergh wrote:
> I have had the opportunity to submit a few patches, which has been
> really fun. However, a while back i submitted patches for fixes that i
> realised after had already been patched in GregKH tree ... and i
> realised i had been developing against Linus's master branch, and not
> linux-next.
> 
> But my question is, is it better to develop against linux-next or in
> newbies cases, one of GregKH's (staging) branches? Maybe
> staging/master or staging/staging-next?

There is no hard and fast rule about it, but in general:

- if you are closely working with a particular subsystem, the best course of
  action is to develop against the indicated tree/branch (e.g. see T: entries
  in the MAINTAINERS file); you should rebase your series to the latest before
  sending it off to the maintainer
- if you are an occasional contributor, you should use either the latest next
  tag for submitting your patches, or the latest mainline tag
- if you are sending a one-off patch, basing it off of the latest mainline tag
  is just fine

With any of these approaches you *will* occasionally have a mid-air collision
with someone else -- it's just a reality when it comes to distributed
workflows.

-K

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* Re: Which tree to track: linux-next or staging?
  2024-03-11 13:56 ` Konstantin Ryabitsev
@ 2024-03-11 18:48   ` Jonathan Bergh
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Bergh @ 2024-03-11 18:48 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: kernelnewbies

On Mon, Mar 11, 2024 at 09:56:06AM -0400, Konstantin Ryabitsev wrote:
> On Sat, Mar 09, 2024 at 03:49:15PM +0100, Jonathan Bergh wrote:
> > I have had the opportunity to submit a few patches, which has been
> > really fun. However, a while back i submitted patches for fixes that i
> > realised after had already been patched in GregKH tree ... and i
> > realised i had been developing against Linus's master branch, and not
> > linux-next.
> > 
> > But my question is, is it better to develop against linux-next or in
> > newbies cases, one of GregKH's (staging) branches? Maybe
> > staging/master or staging/staging-next?
> 
> There is no hard and fast rule about it, but in general:
> 
> - if you are closely working with a particular subsystem, the best course of
>   action is to develop against the indicated tree/branch (e.g. see T: entries
>   in the MAINTAINERS file); you should rebase your series to the latest before
>   sending it off to the maintainer
> - if you are an occasional contributor, you should use either the latest next
>   tag for submitting your patches, or the latest mainline tag
> - if you are sending a one-off patch, basing it off of the latest mainline tag
>   is just fine

Got it, thanks for that, good advice. 
 
> With any of these approaches you *will* occasionally have a mid-air collision
> with someone else -- it's just a reality when it comes to distributed
> workflows.
> 
> -K

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

end of thread, other threads:[~2024-03-11 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-09 14:49 Which tree to track: linux-next or staging? Jonathan Bergh
2024-03-11 13:56 ` Konstantin Ryabitsev
2024-03-11 18:48   ` Jonathan Bergh

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).