diff mbox series

[2/2] doc: process.rst: Document device tree resync rules

Message ID 20240516203416.928567-2-trini@konsulko.com
State Changes Requested
Delegated to: Heinrich Schuchardt
Headers show
Series [1/2] doc: process.rst: Use subsubheading for "Phases of the Development Process" | expand

Commit Message

Tom Rini May 16, 2024, 8:34 p.m. UTC
Document the logic of when we do a full resync of the device trees used
by OF_UPSTREAM as well as that cherry-picking is allowed as needed.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 doc/develop/process.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Quentin Schulz May 17, 2024, 8:35 a.m. UTC | #1
Hi Tom,

On 5/16/24 10:34 PM, Tom Rini wrote:
> Document the logic of when we do a full resync of the device trees used
> by OF_UPSTREAM as well as that cherry-picking is allowed as needed.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>   doc/develop/process.rst | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
> 
> diff --git a/doc/develop/process.rst b/doc/develop/process.rst
> index a66540a698c1..0542b3fc1245 100644
> --- a/doc/develop/process.rst
> +++ b/doc/develop/process.rst
> @@ -108,6 +108,19 @@ Differences to the Linux Development Process
>     In U-Boot, ``"-rc1"`` will only be released after all (or at least most of
>     the) patches that were submitted during the merge window have been applied.
>   
> +Resyncing of the device tree subtree
> +------------------------------------
> +
> +As explained in :doc:`devicetree/control` some platforms make use of device tree
> +files which come from a git subtree that mirrors the Linux Kernel sources
> +itself. For our purposes, we only track releases and not release candidates for
> +merging in our tree. These merges follow the normal merge window rules.
> +
> +In the case of specific changes, such as bug fixes or new platform support,
> +these can be "cherry-picked" and are subject to the normal merge rules. For
> +example, a bug fix can come in later in the window but a full re-sync only
> +happens within the merge window itself.
> +

Can we provide an example on how to cherry-pick those changes with a 
command line?

Additionally, in doc/develop/devicetree/control.rst we say:

"""
However, if `dts/upstream/` hasn't yet received devicetree source file 
for your newly added board support then you can add corresponding 
devicetree source file as `arch/<arch>/dts/<name>.dts`. To select that 
add `# CONFIG_OF_UPSTREAM is not set` and set 
`DEFAULT_DEVICE_TREE=<name>` when prompted by Kconfig.
"""

But now we have a second option, cherry-picking upstream changes 
instead, so I assume we should document it there as well (or 
cross-reference?).

Looks good to me otherwise, thanks for clarifying this new process.

Cheers,
Quentin
Tom Rini May 17, 2024, 2:35 p.m. UTC | #2
On Fri, May 17, 2024 at 10:35:43AM +0200, Quentin Schulz wrote:
> Hi Tom,
> 
> On 5/16/24 10:34 PM, Tom Rini wrote:
> > Document the logic of when we do a full resync of the device trees used
> > by OF_UPSTREAM as well as that cherry-picking is allowed as needed.
> > 
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> > Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
> > ---
> >   doc/develop/process.rst | 13 +++++++++++++
> >   1 file changed, 13 insertions(+)
> > 
> > diff --git a/doc/develop/process.rst b/doc/develop/process.rst
> > index a66540a698c1..0542b3fc1245 100644
> > --- a/doc/develop/process.rst
> > +++ b/doc/develop/process.rst
> > @@ -108,6 +108,19 @@ Differences to the Linux Development Process
> >     In U-Boot, ``"-rc1"`` will only be released after all (or at least most of
> >     the) patches that were submitted during the merge window have been applied.
> > +Resyncing of the device tree subtree
> > +------------------------------------
> > +
> > +As explained in :doc:`devicetree/control` some platforms make use of device tree
> > +files which come from a git subtree that mirrors the Linux Kernel sources
> > +itself. For our purposes, we only track releases and not release candidates for
> > +merging in our tree. These merges follow the normal merge window rules.
> > +
> > +In the case of specific changes, such as bug fixes or new platform support,
> > +these can be "cherry-picked" and are subject to the normal merge rules. For
> > +example, a bug fix can come in later in the window but a full re-sync only
> > +happens within the merge window itself.
> > +
> 
> Can we provide an example on how to cherry-pick those changes with a command
> line?

This is covered in doc/develop/devicetree/control.rst already so I'd
rather not, in this document, which is currently just "why" we do
things. If we need full examples and not just how to use, we should
expand "Resyncing with devicetree-rebasing" in the other document I
think.

> Additionally, in doc/develop/devicetree/control.rst we say:
> 
> """
> However, if `dts/upstream/` hasn't yet received devicetree source file for
> your newly added board support then you can add corresponding devicetree
> source file as `arch/<arch>/dts/<name>.dts`. To select that add `#
> CONFIG_OF_UPSTREAM is not set` and set `DEFAULT_DEVICE_TREE=<name>` when
> prompted by Kconfig.
> """
> 
> But now we have a second option, cherry-picking upstream changes instead, so
> I assume we should document it there as well (or cross-reference?).
> 
> Looks good to me otherwise, thanks for clarifying this new process.

Thanks for spotting that part, yes, I'll go re-word that as well.
diff mbox series

Patch

diff --git a/doc/develop/process.rst b/doc/develop/process.rst
index a66540a698c1..0542b3fc1245 100644
--- a/doc/develop/process.rst
+++ b/doc/develop/process.rst
@@ -108,6 +108,19 @@  Differences to the Linux Development Process
   In U-Boot, ``"-rc1"`` will only be released after all (or at least most of
   the) patches that were submitted during the merge window have been applied.
 
+Resyncing of the device tree subtree
+------------------------------------
+
+As explained in :doc:`devicetree/control` some platforms make use of device tree
+files which come from a git subtree that mirrors the Linux Kernel sources
+itself. For our purposes, we only track releases and not release candidates for
+merging in our tree. These merges follow the normal merge window rules.
+
+In the case of specific changes, such as bug fixes or new platform support,
+these can be "cherry-picked" and are subject to the normal merge rules. For
+example, a bug fix can come in later in the window but a full re-sync only
+happens within the merge window itself.
+
 .. _custodians:
 
 Custodians