From: Ralph Siemsen <ralph.siemsen@linaro.org>
To: Quentin Schulz <quentin.schulz@cherry.de>
Cc: u-boot@lists.u-boot-project.org, Tom Rini <trini@konsulko.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
E Shattow <e@freeshell.de>
Subject: Re: [PATCH v2] doc: develop/sending_patches: add tips for series
Date: Thu, 5 Nov 2026 09:33:48 -0500 [thread overview]
Message-ID: <auyTzNmT63e_mEWO@maple.netwinder.org> (raw)
In-Reply-To: <76240a0d-96ed-4a8b-9336-8cc96c6e6e4f@cherry.de>
On Thu, Nov 05, 2026 at 12:00:27PM +0100, Quentin Schulz wrote:
>
>On 11/4/26 8:48 PM, Ralph Siemsen wrote:
>>+Of course there are sometimes cases where a large patch series is
>>okay:
>>+
>>+* when the changes are all in a specific area: for example when fixing a bug
>>+ in a driver, but also doing some refactoring or cleanup in the same code
>
>issue: This is typically the things we don't want to see I believe.
>Separate bugs from refactoring, cleanup, and new features. The
>argument is: we want the bug to be fixed as soon as possible, but we
>*reaaaaally* like to merge full series at once, so having this kind of
>changes mixed in a series means it's likely we'll either ask the
>contributor to split the series, or if the non-bug-fixing part of the
>series is controversial or not in a good state yet, unnecessarily
>postpone the merging of the bug fix.
Maybe I should have said: "*directly related* refactoring or cleanup"?
Ideally a bug fix should be its own patch, and certainly it should not
include any new features. But sometimes a bit of refactor/cleanup helps
to make a bug fix easier to implement and/or understand.
>>+* when there are unavoidable dependencies between patches: keeping them
>>+ together avoids having to explain how multiple series are dependent
>
>thought: People usually struggle to detect the *actual* dependencies
>and are usually leaning too much on "I need those two drivers to be
>merged for the board to work" for example. We've seen this more
>recently with a full SoC bring-up being sent as one series. Yes, the
>SoC is unusable without all the minimally required drivers, but each
>individual driver can and should be sent a separate series. I'm not
>sure how we can word this better, maybe providing a real-life example
>would be nice. This can always be improved later on, so not a blocker.
Having struggled with this myself, while I do agree with the idea of
using separate series, it does complicate the development process. It
means a branch for each series, and merging them together for each
compile/test cycle. Only after doing this dozens of times did I realize
that I could stack the branches on top of each other rather than merging
each time. Then "git history fixup" and "git history reword" made it
much easier to modify the stack. But all of this has to be learned and
it is not immediately obvious.
I also agree that it is hard to detect the actual dependencies. And in
fact they are not static: when a reviewer of one series requests
changes, it can often impact other series. Which suggests that there is
a dependency, even if it was not apparent initially.
>With the issue in the previous paragraph fixed, I think this is a good
>improvement and we should merge as soon as possible.
Perhaps I should just drop the whole "Of course there are sometimes
cases where a large patch series..." section?
Regards,
Ralph
next prev parent reply other threads:[~2026-11-05 14:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 19:48 [PATCH v2] doc: develop/sending_patches: add tips for series Ralph Siemsen
2026-11-05 11:00 ` Quentin Schulz
2026-11-05 14:33 ` Ralph Siemsen [this message]
2026-11-05 15:46 ` Quentin Schulz
2026-11-06 18:41 ` Ralph Siemsen
2026-11-12 15:48 ` Quentin Schulz
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=auyTzNmT63e_mEWO@maple.netwinder.org \
--to=ralph.siemsen@linaro.org \
--cc=e@freeshell.de \
--cc=neil.armstrong@linaro.org \
--cc=quentin.schulz@cherry.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
/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