[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VdLuDmaBRr0X_==zKxAN5mkxDZV4MMywo7bETaFCvmASg@mail.gmail.com>
Date: Tue, 14 Feb 2023 18:48:11 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Alexander Stein <alexander.stein@...tq-group.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/1] gpio: vf610: make irq_chip immutable
On Tue, Feb 14, 2023 at 6:45 PM Andy Shevchenko
<andy.shevchenko@...il.com> wrote:
> On Tue, Feb 14, 2023 at 2:59 PM Alexander Stein
> <alexander.stein@...tq-group.com> wrote:
...
> > void __iomem *pcr_base = port->base + PORT_PCR(d->hwirq);
>
> Now you can use gpio_num here...
>
> > + irq_hw_number_t gpio_num = irqd_to_hwirq(d);
...
> > static void vf610_gpio_irq_unmask(struct irq_data *d)
> > {
> > - struct vf610_gpio_port *port =
> > - gpiochip_get_data(irq_data_get_irq_chip_data(d));
> > + struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
> > + struct vf610_gpio_port *port = gpiochip_get_data(gc);
> > void __iomem *pcr_base = port->base + PORT_PCR(d->hwirq);
And here.
> > + irq_hw_number_t gpio_num = irqd_to_hwirq(d);
> >
> > + gpiochip_enable_irq(gc, gpio_num);
> > vf610_gpio_writel(port->irqc[d->hwirq] << PORT_PCR_IRQC_OFFSET,
>
> ...and here.
>
> > pcr_base);
> > }
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists