From: Krishna Kurapati PSSNV <quic_kriskura@quicinc.com>
To: Johan Hovold <johan@kernel.org>
Cc: Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>, <quic_wcheng@quicinc.com>,
<linux-arm-msm@vger.kernel.org>, <linux-usb@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<quic_ppratap@quicinc.com>, <quic_jackp@quicinc.com>
Subject: Re: [PATCH 1/6] dt-bindings: usb: dwc3: Clean up hs_phy_irq in bindings
Date: Fri, 24 Nov 2023 23:09:04 +0530 [thread overview]
Message-ID: <004ddc69-1566-4de4-b260-0fca96a9395f@quicinc.com> (raw)
In-Reply-To: <ZWCpGdJRexnk98IN@hovoldconsulting.com>
>>
>> Yes. From whatever targets I was able to find, only one of them didn't
>> have the power_event irq. Rest all of them had. I will recheck that
>> particular one again.
>
> Please do. The driver polls the corresponding status register on all
> platforms currently, and perhaps this interrupt can one day be used to
> get rid of the polling.
>
Ok, I just rechecked and case is, I am not able to get my hands on the
doc. I can't say for sure that the target is missing the pwr_event
interrupt. I say we can safely add the target assuming pwr_event is
present for ipq9574. Every target so far even on downstream has this IRQ
present in hw.
>>> Note that DP comes before DM above as that seems like the natural order
>>> of these (plus before minus).
>>>
>>> Now if the HS interrupt is truly unusable, I guess we can consider
>>> dropping it throughout and the above becomes just three permutations
>>> instead, which can even be expressed along the lines of:
>>
>> Infact, I wanted to do this but since you mentioned before that if HW
>> has it, we must describe it, I kept it in. But since this functionality
>> is confirmed to be mutually exclusive of qusb2/{dp/dm}, I am aligned to
>> skip it in bindings and drop it in DT.
>
> As I mentioned elsewhere, it depends on whether it can be used at all.
> Not simply whether there is some other mechanism that can be used in its
> stead. Such a decision should be left up to the implementation.
>
> That's why I said "truly unusable" above. It's still not clear to me
> whether that is the case or not.
>
I looked at the code of 4.4, 4.14/ 4.19/ 5.4/ 5.10/ 5.15/ 6.1 and none
of them implement the hs_phy_irq.
>>> - anyOf:
>>> - items:
>>> - const: qusb2_phy
>>> - items:
>>> - const: dp_hs_phy_irq
>>> - const: dm_hs_phy_irq
>>> - const: pwr_event
>>> - const: ss_phy_irq (optional)
>>>
>>
>> This must cover all cases AFAIK. How about we keep pwr_event also
>> optional for time being. The ones I am not able to find also would come
>> up under still binding block.
>
> No, we should avoid that if we can as with two many optional things,
> these quickly gets messy (one optional interrupt at the end is fine and
> can be expressed using min/maxItems).
>
> If the "qusb2+" combination above isn't needed, then we're down to four
> permutations, which is few enough to be spelled out explicitly even if
> we decide that the hs_phy_irq should be kept in. Without hs_phy_irq, it
> seems there's really only two permutations.
>
My opinion would be to keep the power_event irq as mandatory and not to
include the hs_phy_irq.
Regards,
Krishna,
next prev parent reply other threads:[~2023-11-24 17:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 19:13 [PATCH 1/6] dt-bindings: usb: dwc3: Clean up hs_phy_irq in bindings Krishna Kurapati
2023-11-22 20:25 ` Marijn Suijten
2023-11-23 7:41 ` Krzysztof Kozlowski
2023-11-23 7:44 ` Krishna Kurapati PSSNV
2023-11-23 7:50 ` Krzysztof Kozlowski
2023-11-23 7:57 ` Krishna Kurapati PSSNV
2023-11-23 14:10 ` Johan Hovold
2023-11-24 12:02 ` Krishna Kurapati PSSNV
2023-11-24 13:46 ` Johan Hovold
2023-11-24 17:39 ` Krishna Kurapati PSSNV [this message]
2023-11-28 10:21 ` Johan Hovold
2023-11-28 10:32 ` Krishna Kurapati PSSNV
2023-11-28 10:57 ` Johan Hovold
2023-11-28 11:32 ` Krishna Kurapati PSSNV
2023-11-29 9:28 ` Krzysztof Kozlowski
2023-11-29 10:16 ` Johan Hovold
2023-11-29 10:50 ` Krishna Kurapati PSSNV
2023-11-30 8:08 ` Krzysztof Kozlowski
2023-11-30 8:16 ` Krzysztof Kozlowski
2023-11-30 8:34 ` Johan Hovold
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=004ddc69-1566-4de4-b260-0fca96a9395f@quicinc.com \
--to=quic_kriskura@quicinc.com \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.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=quic_jackp@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;
as well as URLs for NNTP newsgroup(s).