Re: [PATCH v2] gpiolib: Show correct direction from the beginning

From: Timur Tabi
Date: Fri Sep 28 2018 - 15:23:27 EST


On Fri, Sep 28, 2018 at 2:14 PM Jeffrey Hugo <jhugo@xxxxxxxxxxxxxx> wrote:
> Nack. Causes a XPU violation to the GPIO config registers.

That doesn't surprise me at all.

I believe that the problem is that gpiochip_line_is_valid() is being
called before gpiochip_irqchip_init_valid_mask() is called, which
means that gpiochip_line_is_valid() always returns true.