[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZTdqnSHq_Jo8AuPW@hovoldconsulting.com>
Date: Tue, 24 Oct 2023 08:56:29 +0200
From: Johan Hovold <johan@...nel.org>
To: Krishna Kurapati PSSNV <quic_kriskura@...cinc.com>
Cc: Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Philipp Zabel <p.zabel@...gutronix.de>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Felipe Balbi <balbi@...nel.org>,
Wesley Cheng <quic_wcheng@...cinc.com>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
quic_pkondeti@...cinc.com, quic_ppratap@...cinc.com,
quic_jackp@...cinc.com, ahalaney@...hat.com,
quic_shazhuss@...cinc.com
Subject: Re: [PATCH v13 05/10] usb: dwc3: qcom: Refactor IRQ handling in QCOM
Glue driver
On Mon, Oct 23, 2023 at 10:42:31PM +0530, Krishna Kurapati PSSNV wrote:
> On 10/23/2023 7:37 PM, Johan Hovold wrote:
> > Right. And I assume there are hs_phy_irqs also for the first two USB
> > controllers on sc8280xp?
> There are, I can dig through and find out. Atleast in downstream I don't
> see any use of them.
Yes, please do post how these are wired as well for completeness.
> > Can you find out anything more about what hs_phy_irq is used for? It
> > appears to be an HS wakeup interrupt like the dp/dm ones, but there are
> > not really any details on how it is supposed to be used.
>
> This IRQ is really not used in downstream controllers. Not sure if its
> a good idea to add driver code for that. I did some digging and I got
> the reason why I first said that there is only one hs_phy_irq for
> tertiary port of controller. The hardware programming sequence doesn't
> specify usage of these 4 IRQ's but the hw specifics mention that there
> are 4 of them. Adding driver support for these IRQ's is not a good idea
> (atleast at this point because they are not used in downstream and I am
> not sure what would be the side effect). For now I suggest we can add
> them in bindings and DT and not handle the 4 hs_phy_irq's in the driver
> code (meaning not add the hs_phy_irq to port structure we plan on adding
> to dwc3_qcom).
But there is already support for these interrupts in the driver. You
work for Qualcomm who built the thing so surely you can figure how they
intended these to be used?
You need to provide this information so that we can determine what the
binding should look like. The implementation would also be simplified if
we don't have to add random hacks to it just because we don't know why
the vendor driver you refer does not use it currently on this particular
platform.
> Also I plan on splitting the patchset into 4 parts (essentially 4 diff
> series):
>
> 1. Bindings update for hs_phy_irq's
> 2. DT patches for MP controller and platform specific files
> 3. Core driver update for supporting multiport
> 4. QCOM driver update for supporting wakeup/suspend/resume
>
> This is in accordance to [1] and that way qcom code won't block core
> driver changes from getting merged. Core driver changes are independent
> and are sufficient to get multiport working.
No, you clearly did not understand [1] at all. And stop trying to game
the upstreaming process. Bindings and driver patches go together. The
devicetree changes can be sent separately in case of USB but only
*after* the first set has been merged.
If the code had been in good shape from the start it would have been
merged by now. Just learn from your mistakes and next time things will
be smoother.
> [1]:
> https://lore.kernel.org/all/d4663197-8295-4967-a4f5-6cc91638fc0d@linaro.org/
Johan
Powered by blists - more mailing lists