[PATCH v3] gpio: sifive: To get gpio irq offset from device tree data
Greentime Hu
greentime.hu at sifive.com
Fri Nov 13 04:20:18 EST 2020
Bartosz Golaszewski <bgolaszewski at baylibre.com> 於 2020年11月13日 週五 下午5:00寫道:
>
> On Fri, Nov 13, 2020 at 3:34 AM Greentime Hu <greentime.hu at sifive.com> wrote:
> >
> > We can get hwirq number of the gpio by its irq_data->hwirq so that we don't
> > need to add more macros for different platforms. This patch is tested in
> > SiFive Unleashed board and SiFive Unmatched board.
> >
> > Signed-off-by: Greentime Hu <greentime.hu at sifive.com>
> > ---
>
> Please list the changes between versions of patches. What has changed since v2?
changes in v3:
Add 2 newlines
changes in v2:
Use irqd_to_hwirq() instead of d->hwirq and platform_get_irq()
instead of irq_of_parse_and_map()
More information about the linux-riscv
mailing list