From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Krishna Kurapati PSSNV <quic_kriskura@quicinc.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
quic_ppratap@quicinc.com, quic_jackp@quicinc.com,
Conor Dooley <conor+dt@kernel.org>,
quic_wcheng@quicinc.com, Andy Gross <agross@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Bjorn Andersson <andersson@kernel.org>
Subject: Re: [RFC 1/8] dt-bindings: usb: qcom,dwc3: Add bindings to enable runtime
Date: Wed, 18 Oct 2023 08:09:54 +0200 [thread overview]
Message-ID: <8059e5ab-672a-4808-9159-d67309625ef0@linaro.org> (raw)
In-Reply-To: <189be124-efb1-4843-9a47-db84942838c9@quicinc.com>
On 17/10/2023 19:46, Krishna Kurapati PSSNV wrote:
>
>
> On 10/17/2023 10:49 PM, Krzysztof Kozlowski wrote:
>> On 17/10/2023 15:18, Krishna Kurapati wrote:
>>> Add enable-rt binding to let the device register vendor hooks to
>>> core and facilitate runtime suspend and resume.
>>>
>>> Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
>>> ---
>>> Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 5 +++++
>>> 1 file changed, 5 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
>>> index cb50261c6a36..788d9c510abc 100644
>>> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
>>> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
>>> @@ -151,6 +151,11 @@ properties:
>>> HS/FS/LS modes are supported.
>>> type: boolean
>>>
>>> + qcom,enable-rt:
>>> + description:
>>> + If present, register vendor hooks to facilitate runtime suspend/resume
>>
>> You described the desired Linux feature or behavior, not the actual
>> hardware. The bindings are about the latter, so instead you need to
>> rephrase the property and its description to match actual hardware
>> capabilities/features/configuration etc.
>>
>
> Hi Krzysztof,
>
> Thanks for the review. Although it sounds like its a Linux property,
> internally what it does is configuring qscratch registers properly when
> (dr_mode == OTG)
That's not what you wrote. You wrote "register vendor hooks". Really,
this is nothing to do with hardware.
>
> Would it be fine to rephrase the property name to
> "qcom,config-qscratch" and to make it dependent on dr_mode and
> usb-role-switch properties ? Would it be possible to make such a
> dependency in bindings ?
Examples are in: example-schema or my talk.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-10-18 6:10 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-17 13:18 [RFC 0/8] Enable runtime suspend resume for QCOM devices Krishna Kurapati
2023-10-17 13:18 ` [RFC 1/8] dt-bindings: usb: qcom,dwc3: Add bindings to enable runtime Krishna Kurapati
2023-10-17 17:19 ` Krzysztof Kozlowski
2023-10-17 17:46 ` Krishna Kurapati PSSNV
2023-10-18 6:09 ` Krzysztof Kozlowski [this message]
2023-11-02 16:33 ` Caleb Connolly
2023-11-02 17:02 ` Krishna Kurapati PSSNV
2023-11-02 18:40 ` Caleb Connolly
2023-11-03 5:34 ` Krishna Kurapati PSSNV
2023-11-03 14:56 ` Caleb Connolly
2023-11-03 18:24 ` Krishna Kurapati PSSNV
2023-10-17 13:18 ` [RFC 2/8] usb: dwc3: core: Register vendor hooks for dwc3-qcom Krishna Kurapati
2023-11-03 15:14 ` Bryan O'Donoghue
2023-11-03 18:45 ` Krishna Kurapati PSSNV
2023-11-03 18:49 ` Krishna Kurapati PSSNV
2023-11-04 16:00 ` Bryan O'Donoghue
2023-11-04 17:02 ` Krishna Kurapati PSSNV
2023-11-07 8:33 ` Krishna Kurapati PSSNV
2023-11-07 10:41 ` Bryan O'Donoghue
2023-11-07 10:55 ` Bryan O'Donoghue
2023-11-07 11:02 ` Krishna Kurapati PSSNV
2023-10-17 13:18 ` [RFC 3/8] usb: dwc3: qcom: Enable autosuspend for host mode Krishna Kurapati
2023-10-17 13:18 ` [RFC 5/8] arm64: dts: qcom: Flatten sm8450 usb device node Krishna Kurapati
2023-10-17 13:18 ` [RFC 6/8] arm: dts: qcom: Add pmic glink support for sm8450-qrd Krishna Kurapati
2023-10-17 17:20 ` Krzysztof Kozlowski
2023-10-26 19:41 ` Konrad Dybcio
2023-10-27 3:30 ` Krishna Kurapati PSSNV
2023-10-17 13:18 ` [RFC 7/8] arm: dts: qcom: Enable runtime for SM8450 QRD Krishna Kurapati
2023-10-17 17:21 ` Krzysztof Kozlowski
2023-10-17 13:18 ` [RFC 8/8] usb: dwc3: core: Skip set_mode notification if cable is disconnected Krishna Kurapati
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=8059e5ab-672a-4808-9159-d67309625ef0@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=quic_jackp@quicinc.com \
--cc=quic_kriskura@quicinc.com \
--cc=quic_ppratap@quicinc.com \
--cc=quic_wcheng@quicinc.com \
--cc=robh+dt@kernel.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
all inboxes | Powered by JetHome®