[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8059e5ab-672a-4808-9159-d67309625ef0@linaro.org>
Date: Wed, 18 Oct 2023 08:09:54 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Krishna Kurapati PSSNV <quic_kriskura@...cinc.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
quic_ppratap@...cinc.com, quic_jackp@...cinc.com,
Conor Dooley <conor+dt@...nel.org>, quic_wcheng@...cinc.com,
Andy Gross <agross@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bjorn Andersson <andersson@...nel.org>
Subject: Re: [RFC 1/8] dt-bindings: usb: qcom,dwc3: Add bindings to enable
runtime
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@...cinc.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
Powered by blists - more mailing lists