From: Jonathan Cameron <jic23@kernel.org>
To: Marijn Suijten <marijn.suijten@somainline.org>
Cc: phone-devel@vger.kernel.org,
Bjorn Andersson <bjorn.andersson@linaro.org>,
~postmarketos/upstreaming@lists.sr.ht,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@somainline.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Martin Botka <martin.botka@somainline.org>,
Jami Kettunen <jami.kettunen@somainline.org>,
Andy Gross <agross@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org,
Andy Shevchenko <andy.shevchenko@gmail.com>
Subject: Re: [PATCH 4/7] iio: adc: qcom-spmi-adc5: Add missing VCOIN/AMUX_THM3/GPIO# channels
Date: Sun, 15 May 2022 17:58:43 +0100 [thread overview]
Message-ID: <20220515175843.04ca5c51@jic23-huawei> (raw)
In-Reply-To: <20220515175714.20369e91@jic23-huawei>
On Sun, 15 May 2022 17:57:14 +0100
Jonathan Cameron <jic23@kernel.org> wrote:
> On Sun, 15 May 2022 17:30:04 +0200
> Marijn Suijten <marijn.suijten@somainline.org> wrote:
>
> > On 2022-05-14 17:13:12, Jonathan Cameron wrote:
> > > On Thu, 12 May 2022 00:06:10 +0200
> > > Marijn Suijten <marijn.suijten@somainline.org> wrote:
> > >
> > > > These channels are specified in downstream kernels [1] and actively used
> > > > by ie. the Sony Seine platform on the SM6125 SoC.
> > >
> > > Looking at the links, some of them are on that platform but not all.
> > > Better to make that explicit in this description.
> >
> > This has already been queued up for v2. Adding these seemed easy at the
> > time but they are in fact not used, and I ended up sending the wrong
> > patch.
> >
> > Just so that we're on the same page: only ADC5_AMUX_THM3 and
> > ADC5_GPIO2_100K_PU are unused by my platform. It seems the first should
> > be dropped, but the latter can probably stay in the patch with an
> > explicit mention. If you think both should stay, there are a bunch more
> > channels defined in the downstream kernel as per [1] and I'm not sure if
> > all should be added for completeness.
>
> Probably better to add them with a comment for platforms on which they
> apply (either in commit log or alongside the definitions in the code).
By 'them' I mean add the ones used on your platform only. Let others
add theirs when / if boards using them are upstreamed.
(realised I'd been very unclear just after hitting send!)
>
> Longer term we should think about whether the code can be adjusted
> to not need an explicit definition for these multi purpose channels
> though letting the dt itself describe them (under constraints of the
> hardware platform). Not worth doing before this patch though.
>
> >
> > > >
> > > > [1]: https://source.codeaurora.org/quic/la/kernel/msm-4.14/tree/drivers/iio/adc/qcom-spmi-adc5.c?h=LA.UM.7.11.r1-05200-NICOBAR.0#n688
> > > >
> > > > Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
> > > > Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
> > >
> > > I'm not keen on patches with no context being
> > > sent to mailing lists. Please cc all lists (and preferably individuals)
> > > on at least the cover letter so we can see overall discussion.
> >
> > That can be attributed to the terrible workflow for sending
> > patch-series. Somehow only `git send-email` supports --cc-cmd yet I'd
> > expect it on `git format-patch` for auditing and possibly copying to the
> > cover letter, if `git format-patch --cover-letter` couldn't do this from
> > the beginning.
>
> It would definitely be nice as an option. Can't do it every time because
> on tree wide change the cc list can become so large the mailing lists
> reject it.
>
> > At the same time `git send-email` has --[to/cc]-cover options to
> > propagate email addresses from the cover letter to all the individual
> > patch-replies, but not the inverse :(
> >
> > In the end this leaves me manually running get_maintainer.pl over the
> > entire formatted patch-series, and manually copy-pasting + editing the
> > addresses into the cover letter... Which is easy to forget and is no
> > different here.
> >
> > My apologies for (yet again) accidentally not sending at least the cover
> > letter to everyone. That's a gross oversight, and I'm probably - no, I
> > must - be doing something wrong. Suggestions and/or documentation
> > references are welcome.
>
> Andy Shevchenko has some scripts to try and help with this:
> https://github.com/andy-shev/home-bin-tools/blob/master/ge2maintainer.sh
>
> I've not started using them myself (not gotten around to it yet!) but
> he's pointed to them when I've missed people from cover letter cc lists
> in the past.
>
> >
> > > If nothing else, I've no idea if intent is that the patches go through different
> > > trees or all need to merge via one route.
> >
> > I have no idea either, and have not yet had an answer to a similar
> > question on a different list. Usually it seems the maintainers work out
> > amongst themselves who picks what patch, putting them on hold where
> > necessary to preseve ordering. If not, should the sender split patches
> > across multiple series, either holding off sending part of it or linking
> > to a dependent series?
>
> In this case I think I can pick this patch up directly into the IIO tree
> once everyone else is happy. As you note dts patches normally wait on
> knowing the necessary support is heading in. If you have a view on what
> makes sense as the submitter it's good to stick it in the cover letter, but
> in this case sounds like you don't. :)
>
> Given we are near the end of this cycle, we are probably looking at next
> cycle anyway now, so plenty of time to figure it out!
>
> >
> > In this particular case DT has to wait for these driver patches to land,
> > otherwise they may define channels that do not exist and unnecessarily
> > fail probe.
> >
> > > Patch itself looks fine,
> >
> > Thanks.
> >
> > Looking forward to your suggestions and answers,
> >
> > - Marijn
> >
> > > [..]
>
next prev parent reply other threads:[~2022-05-15 16:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220511220613.1015472-1-marijn.suijten@somainline.org>
2022-05-11 22:06 ` [PATCH 1/7] arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name Marijn Suijten
2022-05-11 22:06 ` [PATCH 2/7] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm6125 compatible Marijn Suijten
2022-05-13 8:19 ` Krzysztof Kozlowski
2022-05-13 9:17 ` Marijn Suijten
2022-05-13 9:37 ` Krzysztof Kozlowski
2022-05-13 21:09 ` Linus Walleij
2022-05-14 19:47 ` Krzysztof Kozlowski
2022-05-16 15:00 ` Bjorn Andersson
2022-05-19 12:51 ` Linus Walleij
2022-05-11 22:06 ` [PATCH 3/7] pinctrl: qcom: spmi-gpio: " Marijn Suijten
2022-05-16 15:00 ` Bjorn Andersson
2022-05-19 12:52 ` Linus Walleij
2022-05-11 22:06 ` [PATCH 4/7] iio: adc: qcom-spmi-adc5: Add missing VCOIN/AMUX_THM3/GPIO# channels Marijn Suijten
2022-05-14 16:13 ` Jonathan Cameron
2022-05-15 15:30 ` Marijn Suijten
2022-05-15 16:57 ` Jonathan Cameron
2022-05-15 16:58 ` Jonathan Cameron [this message]
2022-05-11 22:06 ` [PATCH 5/7] arm64: dts: qcom: Add PM6125 PMIC Marijn Suijten
2022-05-13 8:24 ` Krzysztof Kozlowski
2022-05-13 9:25 ` Marijn Suijten
2022-05-13 9:33 ` Krzysztof Kozlowski
2022-05-11 22:06 ` [PATCH 6/7] arm64: dts: qcom: sm6125-seine: Include PM6125 and configure PON Marijn Suijten
2022-05-11 22:06 ` [PATCH 7/7] arm64: dts: qcom: sm6125-seine: Configure additional trinket thermistors Marijn Suijten
2022-05-13 8:25 ` Krzysztof Kozlowski
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=20220515175843.04ca5c51@jic23-huawei \
--to=jic23@kernel.org \
--cc=agross@kernel.org \
--cc=andy.shevchenko@gmail.com \
--cc=angelogioacchino.delregno@somainline.org \
--cc=bjorn.andersson@linaro.org \
--cc=jami.kettunen@somainline.org \
--cc=konrad.dybcio@somainline.org \
--cc=lars@metafoo.de \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=martin.botka@somainline.org \
--cc=phone-devel@vger.kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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