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: Linus Walleij <hidden>
Date: 2019-08-03 09:42:59

Possibly related (same subject, not in this thread)

On Fri, Aug 2, 2019 at 4:51 AM Timur Tabi [off-list ref] wrote:
On 7/31/19 12:58 PM, Jeffrey Hugo wrote:
quoted
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.
You're absolutely right.

Sboyd hacked up a patch to that effect and I applied it.

I haven't heard if QDF2400 is working again but I'd love to know!

Yours,
Linus Walleij

_______________________________________________
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