Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Jakob Hauser <jahau@rocketmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>,
	Chanwoo Choi <cw00.choi@samsung.com>,
	MyungJoo Ham <myungjoo.ham@samsung.com>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Sebastian Reichel <sre@kernel.org>, Lee Jones <lee@kernel.org>,
	Stephan Gerhold <stephan@gerhold.net>,
	Raymond Hackley <raymondhackley@protonmail.com>,
	Henrik Grimler <henrik@grimler.se>,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	phone-devel@vger.kernel.org,
	~postmarketos/upstreaming@lists.sr.ht
Subject: Re: [PATCH v2] arm64: dts: qcom: msm8916-samsung-serranove: Add RT5033 PMIC with charger
Date: Wed, 12 Jul 2023 21:50:12 +0200	[thread overview]
Message-ID: <3376e14a-4fc7-160e-509e-8dcbe627ef62@rocketmail.com> (raw)
In-Reply-To: <02fe7c1e-cb6a-14bc-73fc-04956a2b8396@kernel.org>

Hi Krzysztof,

Cc: Rob, Chanwoo & MyungJoo

On 11.07.23 08:13, Krzysztof Kozlowski wrote:
...
> This appeared in today's next next-20230711 and causes new warnings
> 
> msm8916-samsung-serranove.dtb: extcon@14: 'connector' does not match any
> of the regexes: 'pinctrl-[0-9]+'
> https://krzk.eu/#/builders/90/builds/40/steps/17/logs/stdio
> 
> The commit mentions rt5033, but that is not the schema being here
> tested, so clearly this is wrong or bindings were not updated.
> 
> Please fix (and test your future patches).

The implementation you see in this patch follows the guidance of yours 
and Rob’s. I already expressed my discontent about it before.

To solve the message, the dt-bindings of extcon device sm5502-muic [1] 
would need to be changed to allow a "connector" sub-node. That’s not the 
right approach.

I still have the impression that the current implementation is based on 
misunderstandings. I do think Rob’s comment that excon phandle being 
deprecated [2] is valid for the USB subsystem. Your suggestion to check 
"ports graph", "orientation" and "usb-role-switch" applies to USB 
subsystem as well [3]. Rob took the time to add more explanation [4] but 
it’s still about handling connectors in the more strict sense, which is 
circling around UBS subsystem.

These discussions led to a strangely mixed-up result. I was pushed to 
implement the USB subsystem connector approach upon an excton subsystem 
device. As the standard USB connector approach didn’t fit, we switched 
to a vendor-specific connector phandle [5]. In fact it’s kind of a 
workaround for the extcon phandle.

The extcon device sm5504 is a real piece of hardware. It’s not handled 
by USB subsystem but by extcon subsystem. The excton subsystem has a 
method implemented to get the device by phandle [6].

I therefore propose to use the phandle of the extcon subsystem. I mean 
extcon subsystem, not USB subsystem. In case you disagree, I kindly ask 
you to take more time to answer in more detail and especially 
case-related. And specifically to Krzysztof I ask for more politeness in 
your way of communicating. I understand you’re answering hundreds of 
requests a day but the communication we had in the past weeks is really 
frustrating.

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml?h=v6.5-rc1
[2] 
https://lore.kernel.org/linux-pm/cover.1677620677.git.jahau@rocketmail.com/T/#m1f57a36d534e677f84158e6886c1340e036ab5c6
[3] 
https://lore.kernel.org/linux-pm/cover.1682636929.git.jahau@rocketmail.com/T/#m7672ad05590e4123ba5622bc59a9b4dcc0f70e3a
[4] 
https://lore.kernel.org/linux-pm/cover.1682636929.git.jahau@rocketmail.com/T/#m65db0709f0ad3feac6c289f65be5a351cacd2835
[5] 
https://lore.kernel.org/linux-pm/20230506155435.3005-1-jahau@rocketmail.com/T/#m2aa652c41bad93d60042d831c6397e7838d3cbfc
[6] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/extcon/extcon.c?h=v6.5-rc1#n1417

Kind regards,
Jakob

  reply	other threads:[~2023-07-12 19:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230619203743.8136-1-jahau.ref@rocketmail.com>
2023-06-19 20:37 ` [PATCH v2] arm64: dts: qcom: msm8916-samsung-serranove: Add RT5033 PMIC with charger Jakob Hauser
2023-07-10  5:07   ` Bjorn Andersson
2023-07-11  6:13   ` Krzysztof Kozlowski
2023-07-12 19:50     ` Jakob Hauser [this message]
2023-07-12 20:28       ` Krzysztof Kozlowski
2023-07-13 22:26         ` Jakob Hauser
2023-07-30 17:27           ` Jakob Hauser

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=3376e14a-4fc7-160e-509e-8dcbe627ef62@rocketmail.com \
    --to=jahau@rocketmail.com \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=henrik@grimler.se \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzk@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=phone-devel@vger.kernel.org \
    --cc=raymondhackley@protonmail.com \
    --cc=robh+dt@kernel.org \
    --cc=sre@kernel.org \
    --cc=stephan@gerhold.net \
    --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