U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sumit Garg <sumit.garg@kernel.org>
To: Tom Rini <trini@konsulko.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Christian Marangi <ansuelsmth@gmail.com>,
	Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,
	Lukasz Majewski <lukma@denx.de>,
	Sean Anderson <seanga2@gmail.com>,
	Sumit Garg <sumit.garg@linaro.org>,
	Simon Glass <sjg@chromium.org>, Stephen Boyd <sboyd@kernel.org>,
	Conor Dooley <conor.dooley@microchip.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH v2 5/6] dt-bindings: clock: drop NUM_CLOCKS define for EN7581
Date: Wed, 2 Apr 2025 12:42:54 +0530	[thread overview]
Message-ID: <Z-zjdhegA-W23qc9@sumit-X1> (raw)
In-Reply-To: <20250401180217.GO5495@bill-the-cat>

Sorry for jumping in late in this thread as it is still using my old
Linaro email ID which should be disabled by now.

On Tue, Apr 01, 2025 at 12:02:17PM -0600, Tom Rini wrote:
> On Tue, Apr 01, 2025 at 07:28:36PM +0200, Krzysztof Kozlowski wrote:
> > On 01/04/2025 18:40, Tom Rini wrote:
> > > On Tue, Apr 01, 2025 at 05:27:30PM +0200, Krzysztof Kozlowski wrote:
> > >> On 01/04/2025 16:44, Tom Rini wrote:
> > >>> On Thu, Mar 27, 2025 at 03:58:52PM +0100, Krzysztof Kozlowski wrote:
> > >>>> On 27/03/2025 15:50, Christian Marangi wrote:
> > >>>>> On Thu, Mar 27, 2025 at 03:43:47PM +0100, Krzysztof Kozlowski wrote:
> > >>>>>> On 14/03/2025 19:59, Christian Marangi wrote:
> > >>>>>>> Drop NUM_CLOCKS define for EN7581 dts/upstream/src/include. This is not a binding and
> > >>>>>>> should not be placed here. Value is derived internally in the user
> > >>>>>>> driver.
> > >>>>>>>
> > >>>>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> > >>>>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > >>>>>> Please drop my Ack. I have never acked such patch for uboot. If I did,
> > >>>>>> it was by mistake - probably you CC-ed me for some reason.
> > >>>>>>
> > >>>>>
> > >>>>> Some explaination, uboot introduced the concept of upstream where they
> > >>>>> "import" linux patch for dts and dt-bindings.
> > >>>>
> > >>>> I expected OF_UPSTREAM to be taking the sources, not patches.
> > >>>>
> > >>>>>
> > >>>>> This and the other patch are the exact upstream patch with only the path
> > >>>>> changed so I keep all the patch commit message with tags and added the
> > >>>>>
> > >>>>> [ upstream commit ] thing.
> > >>>>>
> > >>>>> Hope Tom can better suggest how this should be done. You were CC
> > >>>>> probably because the git send-email included you as present in the
> > >>>>> different tags.
> > >>>>
> > >>>> Well, Ack is still not valid because I did not Ack exactly that change.
> > >>>> It does not matter for the ack, but for Reviewed-by it would matter,
> > >>>> because it is a statement (of oversight...). I cannot control what you
> > >>>> put into patches taken out of kernel, but at least do not Cc me on that.
> > >>>
> > >>> In specifics, yes, we should update doc/develop/devicetree/control.rst
> > >>> and maybe doc/develop/sending_patches.rst to use --suppress-cc=all for
> > >>> dts/upstream.
> > >>>
> > >>> But in general, what do you expect people to be doing with content from
> > >>> devicetree-rebasing? We're doing some direct cherry-picks in between
> > >>> merging of the tags. I think it would be weird to be dropping the tags
> > >>> and un-attributing peoples work.
> > >>
> > >>
> > >> I rather expected something like how kernel is importing dtc. You just
> > >> list the commits you get. If you want the full git history, then I would
> > >> expect simple git submodule. In both cases there will be no such patches
> > >> on the lists.
> > >>
> > >> For the Ack it does not matter, but I would feel uncomfortable if people
> > >> were sending stripped and modified patches with my Rb tag.
> > > 
> > > I guess I'm confused. Looking at
> > > https://patchwork.ozlabs.org/project/uboot/patch/20250314185941.27834-6-ansuelsmth@gmail.com/
> > > we're doing the normal thing of havig "[ upstream commit <sha>]" after
> > > the imported log. When I merge the subtree and tag it indeed gives what
> > > you're expecting too.
> > 
> > When you merge subtree, the patch is not modified and it lives in
> > separate repo. No one sends them over lists, no one modifies them.
> > Unlike here (even if modification did not happen, person was touching it
> > so how can anyone be sure? That's not a scripted process).
> 
> We merge the subtree on tags, and people cherry-pick commits in between
> tags when needed. This is a case of the latter, which is why it says "[
> upstream commit <sha> ]" in the commit message, which is the usual case.

Although we have tooling to pick patches from devicetree-rebasing tree
but I can see Krzysztof's concerns here. We can't be sure if developer
has touched the cherry picked patch or not but I suppose there would be
similar concerns for the stable backports for Linux too. So IMHO, it's
really upto maintainer applying those cherry-picked patches to see if
there is any difference from upstream.

However, there is an additional process change what we can do here is
for the developer to list just the commit IDs for the patches to be
cherry picked in dts/upstream in the cover letter. This way the
maintainer can just directly use the tooling to cherry pick those
patches before applying the patch-set.

Tooling already available for cherry-picking subtree commits as:

$ ./tools/update-subtree.sh pick dts <devicetree-rebasing-commit-id>

-Sumit

  reply	other threads:[~2025-04-02  7:13 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-14 18:59 [PATCH v2 0/6] airoha: Add initial support AN7581 Christian Marangi
2025-03-14 18:59 ` [PATCH v2 1/6] airoha: Add initial support for Airoha AN7581 SoC Christian Marangi
2025-03-14 18:59 ` [PATCH v2 2/6] clk: airoha: Add support for Airoha AN7581 SoC clock Christian Marangi
2025-03-14 18:59 ` [PATCH v2 3/6] reset: airoha: Add driver for controlling reset line of AN7581 Christian Marangi
2025-03-14 18:59 ` [PATCH v2 4/6] arm64: dts: airoha: en7581: Add Clock Controller node Christian Marangi
2025-03-14 18:59 ` [PATCH v2 5/6] dt-bindings: clock: drop NUM_CLOCKS define for EN7581 Christian Marangi
2025-03-27 14:43   ` Krzysztof Kozlowski
2025-03-27 14:50     ` Christian Marangi
2025-03-27 14:58       ` Krzysztof Kozlowski
2025-04-01 14:44         ` Tom Rini
2025-04-01 14:56           ` Conor Dooley
2025-04-01 15:27           ` Krzysztof Kozlowski
2025-04-01 16:40             ` Tom Rini
2025-04-01 17:28               ` Krzysztof Kozlowski
2025-04-01 18:02                 ` Tom Rini
2025-04-02  7:12                   ` Sumit Garg [this message]
2025-04-02 14:16                     ` Tom Rini
2025-03-14 18:59 ` [PATCH v2 6/6] dt-bindings: clock: add ID for eMMC " Christian Marangi
2025-03-27 14:44   ` Krzysztof Kozlowski
2025-03-14 20:26 ` [PATCH v2 0/6] airoha: Add initial support AN7581 Tom Rini
2025-03-27 14:20   ` Christian Marangi
2025-04-01 10:45 ` Andreas Gnau
2025-04-01 10:50   ` Christian Marangi
2025-04-01 20:36 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z-zjdhegA-W23qc9@sumit-X1 \
    --to=sumit.garg@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=ansuelsmth@gmail.com \
    --cc=conor.dooley@microchip.com \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lukma@denx.de \
    --cc=rayagonda.kokatanur@broadcom.com \
    --cc=sboyd@kernel.org \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox