From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Elson Serrao <quic_eserrao@quicinc.com>
Cc: Roger Quadros <rogerq@kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [PATCH v4 2/3] dt-bindings: usb: snps,dwc3: Add runtime-suspend-on-usb-suspend property
Date: Thu, 31 Aug 2023 08:29:57 +0200 [thread overview]
Message-ID: <cea3472a-e9f7-39cb-419c-d042b3bf0682@linaro.org> (raw)
In-Reply-To: <20230831030134.z46fjwyr6edl3t7x@synopsys.com>
On 31/08/2023 05:01, Thinh Nguyen wrote:
> On Wed, Aug 30, 2023, Krzysztof Kozlowski wrote:
>> On 30/08/2023 06:31, Elson Serrao wrote:
>>>
>>>
>>> On 8/29/2023 6:37 PM, Thinh Nguyen wrote:
>>>> Just want to clarify, there are dwc3 properties and there are dt binding
>>>> properties. Often the case that dt binding matches 1-to-1 with dwc3
>>>> driver property. Now, we need to enhance the checkers so that the dwc3
>>>> driver property to match cases where it is platform specific and through
>>>> compatible string.
>>>>
>>>
>>> Thank you for the clarification Thinh.
>>> To confirm, we would need to modify the driver to parse a new compatible
>>> string (say "snps,dwc3-ext-wakeup") and add .data field so that the
>>> driver is aware that this particular platform supports external wakeup
>>> detection.Right ?
>>
>> No, it's not then platform specific. You said it depends on each
>> platform. Platform is Qualcomm SM8450 for example.
>>
>
> Hi Elson,
>
> Use the compatible string of your platform.
>
> e.g.
> if (dev->of_node) {
> struct device_node *parent = of_get_parent(dev->of_node);
>
> dwc->no_disconnect_on_usb_suspend =
> of_device_is_compatible(parent, "qcom,your-compatible-string") ||
> of_device_is_compatible(parent, "some-other-platform");
> }
>
> You need to enhance dwc3_get_properties(). This may get big as dwc3 adds
> more properties. Perhaps you can help come up with ideas to keep this
> clean. Perhaps we can separate this out of dwc3 core.c?
This should be a flag or quirk in device ID table match data.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-08-31 6:30 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-14 18:50 [PATCH v4 0/3] Support dwc3 runtime suspend during bus suspend Elson Roy Serrao
2023-08-14 18:50 ` [PATCH v4 1/3] usb: function: u_ether: Handle rx requests during suspend/resume Elson Roy Serrao
2023-08-14 18:50 ` [PATCH v4 2/3] dt-bindings: usb: snps,dwc3: Add runtime-suspend-on-usb-suspend property Elson Roy Serrao
2023-08-14 19:13 ` Rob Herring
2023-08-16 5:44 ` Krzysztof Kozlowski
2023-08-18 19:16 ` Elson Serrao
2023-08-19 0:42 ` Thinh Nguyen
2023-08-19 9:35 ` Krzysztof Kozlowski
2023-08-22 23:58 ` Elson Serrao
2023-08-23 6:34 ` Krzysztof Kozlowski
2023-08-23 8:04 ` Roger Quadros
2023-08-26 1:53 ` Thinh Nguyen
2023-08-26 8:39 ` Krzysztof Kozlowski
2023-08-28 21:34 ` Elson Serrao
2023-08-30 1:37 ` Thinh Nguyen
2023-08-30 4:31 ` Elson Serrao
2023-08-30 7:05 ` Krzysztof Kozlowski
2023-08-31 3:01 ` Thinh Nguyen
2023-08-31 6:29 ` Krzysztof Kozlowski [this message]
2023-09-21 17:09 ` Elson Serrao
2023-10-02 18:56 ` Thinh Nguyen
2023-10-17 22:59 ` Elson Serrao
2023-10-20 22:26 ` Thinh Nguyen
2023-08-14 18:50 ` [PATCH v4 3/3] usb: dwc3: Modify runtime pm ops to handle bus suspend Elson Roy Serrao
2023-10-24 10:14 ` Roger Quadros
2023-10-24 18:41 ` Elson Serrao
2023-10-25 8:02 ` Roger Quadros
2023-10-25 22:21 ` Elson Serrao
2023-10-26 8:29 ` Roger Quadros
2023-10-27 0:07 ` Elson Serrao
2023-10-27 6:37 ` Roger Quadros
2023-10-30 18:41 ` Elson Serrao
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=cea3472a-e9f7-39cb-419c-d042b3bf0682@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=quic_eserrao@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=rogerq@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.