From: Krishna Kurapati PSSNV <quic_kriskura@quicinc.com>
To: Johan Hovold <johan@kernel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Wesley Cheng <quic_wcheng@quicinc.com>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
Conor Dooley <conor+dt@kernel.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Felipe Balbi <balbi@kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-msm@vger.kernel.org>, <linux-usb@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <quic_ppratap@quicinc.com>,
<quic_jackp@quicinc.com>
Subject: Re: [PATCH v16 7/9] usb: dwc3: qcom: Refactor IRQ handling in glue driver
Date: Mon, 25 Mar 2024 22:59:49 +0530 [thread overview]
Message-ID: <807015d4-c5ed-4e04-9948-fd1ff894a04e@quicinc.com> (raw)
In-Reply-To: <ZgF6zvaT2OkrbkHK@hovoldconsulting.com>
On 3/25/2024 6:53 PM, Johan Hovold wrote:
> On Mon, Mar 25, 2024 at 06:45:07PM +0530, Krishna Kurapati PSSNV wrote:
>>>> +static int dwc3_qcom_setup_irq(struct platform_device *pdev)
>>>> +{
>>>> + struct dwc3_qcom *qcom = platform_get_drvdata(pdev);
>>>> + bool is_multiport;
>>>> + int ret;
>>>> + int i;
>>>> +
>>>> + qcom->num_ports = dwc3_qcom_find_num_ports(pdev);
>>>> + if (qcom->num_ports < 0)
>>>> + return -ENOMEM;
>>>
>>> Just return 'ret' directly.
>>
>> Sure, will init ret to -ENOMEM and return ret here. >
Hi Johan,
> I meant that you should return whatever error dwc3_qcom_find_num_ports()
> returns, so perhaps something like:
>
Got it. Any error that might come up in interrupt reading as well.
>
> ret = dwc3_qcom_find_num_ports(pdev);
> if (ret < 0)
> return ret;
>
> qcom->num_ports = ret;
>
> It looks like dwc3_qcom_find_num_ports() can also return 0 (e.g. on
> malformed DT), which also needs to be handled somehow. I missed that
> earlier.
>
From what I remember, Konrad mentioned that we might not need to
support incomplete or improper DT [1]. Also since this is close to
getting merged, can we take up any changes for Malformed DT handling
later given that only one or two devices are present and less likely to
be given a malformed DT.
[1]:
https://lore.kernel.org/all/c8d77d4f-6696-4dc9-8030-daf1d10b114b@linaro.org/
Regards,
Krishna,
next prev parent reply other threads:[~2024-03-25 17:30 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 6:20 [PATCH v16 0/9] Add multiport support for DWC3 controllers Krishna Kurapati
2024-03-07 6:20 ` [PATCH v16 1/9] dt-bindings: usb: Add bindings for multiport properties on DWC3 controller Krishna Kurapati
2024-03-25 12:30 ` Johan Hovold
2024-03-07 6:20 ` [PATCH v16 2/9] usb: dwc3: core: Access XHCI address space temporarily to read port info Krishna Kurapati
2024-03-25 12:31 ` Johan Hovold
2024-03-07 6:20 ` [PATCH v16 3/9] usb: dwc3: core: Skip setting event buffers for host only controllers Krishna Kurapati
2024-03-07 6:20 ` [PATCH v16 4/9] usb: dwc3: core: Refactor PHY logic to support Multiport Controller Krishna Kurapati
2024-03-25 12:33 ` Johan Hovold
2024-03-07 6:20 ` [PATCH v16 5/9] dt-bindings: usb: qcom,dwc3: Add bindings for SC8280 Multiport Krishna Kurapati
2024-03-25 12:34 ` Johan Hovold
2024-03-07 6:20 ` [PATCH v16 6/9] usb: dwc3: qcom: Add helper function to request wakeup interrupts Krishna Kurapati
2024-03-25 12:35 ` Johan Hovold
2024-03-07 6:20 ` [PATCH v16 7/9] usb: dwc3: qcom: Refactor IRQ handling in glue driver Krishna Kurapati
2024-03-25 12:48 ` Johan Hovold
2024-03-25 13:15 ` Krishna Kurapati PSSNV
2024-03-25 13:23 ` Johan Hovold
2024-03-25 17:29 ` Krishna Kurapati PSSNV [this message]
2024-03-25 19:45 ` Johan Hovold
2024-03-26 8:11 ` Krishna Kurapati PSSNV
2024-03-26 8:28 ` Johan Hovold
2024-03-26 10:06 ` Krishna Kurapati PSSNV
2024-03-26 10:14 ` Johan Hovold
2024-03-07 6:20 ` [PATCH v16 8/9] usb: dwc3: qcom: Enable wakeup for applicable ports of multiport Krishna Kurapati
2024-03-25 12:50 ` Johan Hovold
2024-03-07 6:20 ` [PATCH v16 9/9] usb: dwc3: qcom: Add multiport suspend/resume support for wrapper Krishna Kurapati
2024-03-25 12:52 ` Johan Hovold
2024-03-25 13:15 ` Krishna Kurapati PSSNV
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=807015d4-c5ed-4e04-9948-fd1ff894a04e@quicinc.com \
--to=quic_kriskura@quicinc.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=andersson@kernel.org \
--cc=balbi@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