[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+V-a8uL6_Ac33=romJE=AyVHR49jmwow=gtiFWTRbq_7UHJTg@mail.gmail.com>
Date: Mon, 13 Jun 2022 15:15:23 +0100
From: "Lad, Prabhakar" <prabhakar.csengg@...il.com>
To: Yongqin Liu <yongqin.liu@...aro.org>
Cc: Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
Rob Herring <robh+dt@...nel.org>,
Marc Zyngier <maz@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>,
Linux-Renesas <linux-renesas-soc@...r.kernel.org>,
Biju Das <biju.das.jz@...renesas.com>
Subject: Re: [RFC PATCH] of/platform: Drop static setup of IRQ resource from
DT core
On Mon, Jun 13, 2022 at 1:41 PM Yongqin Liu <yongqin.liu@...aro.org> wrote:
>
> Hi, Lad
>
> Thanks a lot for the links and suggestions!
> Finally I resolved the problem with the call of
> platform_get_irq_byname and irq_get_trigger_type.
>
> Btw, I just have a question about the of_irq_to_resource function.
> At the beginning I tried to use platform_get_irq and of_irq_to_resource
> to get the irq name and flags information, but it seems of_irq_to_resource
> does not work as expected, maybe I called incorrectly somewhere,
> here I just want to ask, do you think that if of_irq_to_resource still
> could be used to
> get the resource with the irq returned from platform_get_irq?
>
>
Yes of_irq_to_resource() can be used to get the irq number.
Cheers,
Prabhakar
Powered by blists - more mailing lists