From: Diogo Ivo <diogo.ivo@siemens.com>
To: Sunil Kovvuri Goutham <sgoutham@marvell.com>,
MD Danish Anwar <danishanwar@ti.com>,
Roger Quadros <rogerq@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Richard Cochran <richardcochran@gmail.com>,
Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
Tero Kristo <kristo@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jan Kiszka <jan.kiszka@siemens.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
diogo.ivo@siemens.com
Subject: Re: [EXTERNAL] [PATCH 2/3] net: ti: icss-iep: Enable compare events
Date: Mon, 3 Jun 2024 11:02:20 +0100 [thread overview]
Message-ID: <3b8ef6f2-4a06-4028-8a6f-f63b30ff8930@siemens.com> (raw)
In-Reply-To: <BY3PR18MB47377FBF88724DD5A4814BCEC6FC2@BY3PR18MB4737.namprd18.prod.outlook.com>
Hi Sunil,
On 5/31/24 6:12 AM, Sunil Kovvuri Goutham wrote:
>> From: Diogo Ivo <diogo.ivo@siemens.com>
>> Sent: Wednesday, May 29, 2024 9:35 PM
>>
>> + iep->cap_cmp_irq = platform_get_irq_byname_optional(pdev,
>> "iep_cap_cmp");
>> + if (iep->cap_cmp_irq < 0) {
>> + if (iep->cap_cmp_irq == -EPROBE_DEFER)
>> + return iep->cap_cmp_irq;
>
> This info is coming from DT, is PROBE_DIFFER error return value possible ?
From my understanding -EPROBE_DEFER is a possible error code.
platform_get_irq_byname_optional() will eventually call of_irq_get()
where we get -EPROBE_DEFER if the IRQ domain still hasn't been
initialized.
>> + iep->cap_cmp_irq = 0;
>> + } else {
>> + ret = devm_request_irq(dev, iep->cap_cmp_irq,
>> + icss_iep_cap_cmp_irq,
>> IRQF_TRIGGER_HIGH,
>> + "iep_cap_cmp", iep);
>> + if (ret)
>> + return dev_err_probe(iep->dev, ret,
>> + "Request irq failed for cap_cmp\n");
>
> Can't this driver live without this feature ?
Yes it can! I'll rework this logic so that we do not fail to probe
here and simply continue without PPS event support.
Thank you for the review!
Best regards,
Diogo
next prev parent reply other threads:[~2024-06-03 10:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 16:05 [PATCH 0/3] Enable PTP timestamping/PPS for AM65x SR1.0 devices Diogo Ivo
2024-05-29 16:05 ` [PATCH 1/3] net: ti: icssg-prueth: Enable PTP timestamping support for " Diogo Ivo
2024-05-30 18:43 ` Jacob Keller
2024-06-03 9:55 ` Diogo Ivo
2024-06-01 12:03 ` Simon Horman
2024-06-03 10:05 ` Diogo Ivo
2024-05-29 16:05 ` [PATCH 2/3] net: ti: icss-iep: Enable compare events Diogo Ivo
2024-05-30 18:43 ` Jacob Keller
2024-05-31 5:12 ` [EXTERNAL] " Sunil Kovvuri Goutham
2024-06-02 15:19 ` Andrew Lunn
2024-06-03 10:02 ` Diogo Ivo [this message]
2024-05-29 16:05 ` [PATCH 3/3] arm64: dts: ti: iot2050: Add IEP interrupts for SR1.0 devices Diogo Ivo
2024-05-30 18:45 ` Jacob Keller
2024-05-31 6:22 ` [PATCH 0/3] Enable PTP timestamping/PPS for AM65x " Jan Kiszka
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=3b8ef6f2-4a06-4028-8a6f-f63b30ff8930@siemens.com \
--to=diogo.ivo@siemens.com \
--cc=conor+dt@kernel.org \
--cc=danishanwar@ti.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=jan.kiszka@siemens.com \
--cc=kristo@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nm@ti.com \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=rogerq@kernel.org \
--cc=sgoutham@marvell.com \
--cc=vigneshr@ti.com \
/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
all inboxes | Powered by JetHome®