Thread (15 messages) 15 messages, 6 authors, 2019-08-14

Re: next/master boot: 265 boots: 17 failed, 184 passed with 64 offline (next-20190730)

From: Timur Tabi <timur@kernel.org>
Date: 2019-08-02 02:51:42

Possibly related (same subject, not in this thread)

On 7/31/19 12:58 PM, Jeffrey Hugo wrote:
static int gpiochip_alloc_valid_mask(struct gpio_chip *gc)
{
      if (IS_ENABLED(CONFIG_OF_GPIO))
          gc->need_valid_mask = of_gpio_need_valid_mask(gc);
      if (!gc->need_valid_mask)
          return 0;
So this seems wrong on a system with OF and ACPI.  It assumes that OF 
takes priority over ACPI if both are enabled, and that's not true in 
general.  If anything, it's the other way around.

IS_ENABLED(CONFIG_OF_GPIO) is not the correct test to see if OF should 
be used.  I think this should be replaced with the OF equivalent of 
has_acpi_companion(), but even that might not be enough.  Basically, 
of_gpio_need_valid_mask() should return three values, 0 = don't need it, 
1 = does need it, -1 = gpio info is not in OF.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help