[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZLgbiIMVqYoe/OcN@smile.fi.intel.com>
Date: Wed, 19 Jul 2023 20:21:12 +0300
From: Andy Shevchenko <andy@...nel.org>
To: Samuel Holland <samuel.holland@...ive.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Emil Renner Berthing <emil.renner.berthing@...onical.com>,
Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: Re: [PATCH v2 3/4] gpio: sifive: Get the parent IRQ's domain from
its irq_data
On Wed, Jul 19, 2023 at 12:03:46PM -0500, Samuel Holland wrote:
> On 2023-07-19 11:54 AM, Andy Shevchenko wrote:
> > On Wed, Jul 19, 2023 at 09:34:44AM -0700, Samuel Holland wrote:
...
> > Also, can irq_get_irq_data() return NULL? Needs a comment on top
> > of that assignment or an additional check.
>
> No, the earlier loop already verified the IRQ number was valid. I don't think it
> can later become invalid. In any case, we already dereference the result of
> irq_get_irq_data(irq_number[foo]) in sifive_gpio_child_to_parent_hwirq().
Thanks for explanation, just add a comment.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists