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: Jeffrey Hugo <hidden>
Date: 2019-08-12 14:08:29

Possibly related (same subject, not in this thread)

On 8/3/2019 2:42 AM, Linus Walleij wrote:
On Fri, Aug 2, 2019 at 4:51 AM Timur Tabi [off-list ref] wrote:
quoted
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!
Sorry, was on vacation.  Per kernelci[1], looks like things are working.

[1] https://kernelci.org/boot/qcom-qdf2400/

-- 
Jeffrey Hugo
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.

_______________________________________________
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