On Mon, Feb 11, 2019 at 1:23 PM Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxx> wrote: > > Hello, > > On Mon, 11 Feb 2019 10:37:08 +0530 > <shubhrajyoti.datta@xxxxxxxxx> wrote: > > > From: Borsodi Petr <Petr.Borsodi@xxxx> > > > > There is a problem with GPIO driver when used as IRQ controller. > > It is not working because the module is sleeping (clock is disabled). > > The patch enables clocks when IP is used as IRQ controller. > > > > Signed-off-by: Borsodi Petr <Petr.Borsodi@xxxx> > > Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxxxxx> > > I sent another similar patch a few days ago: > > https://www.spinics.net/lists/linux-gpio/msg36472.html > > Except that I re-use the existing gpiochip_reqres_irq() and > gpiochip_relres_irq() functions instead of duplicating them. > Thanks looks to be a better approach. > Best regards, > > Thomas > -- > Thomas Petazzoni, CTO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com