Re: gpio irqchip initialization race

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 1, 2016 at 10:56 AM, Alexander Stein
<alexander.stein@xxxxxxxxxxxxxxxxxxxxx> wrote:
> [Me]
>> And in this case (if gpio_keys handle -EPROBE_DEFER gracefully)
>> all should be fine with my oneliner patch.
>>
>> I am more uncertain about the -EINVAL (-22) we might need some
>> more analysis there.
>
> I did 10 runs and got the following results:
>> 3x  gpio-keys user_sw: Unable to claim irq 0; error -22
>> 2x  gpio-keys user_sw: Unable to get irq number for GPIO 376, error -517
>> 5x  ok
>
> So, for one gpio-keys seems not to handle -EPROBE_DEFER gracefully

After reading the code the only problem seems to be that it prints that
error. A small patch to silence that print should fix it then, can you
confirm that in these cases the gpio-keys are retried later?

> and it seem
> still possible to get an invalid irq number.

I think this is because gpiolib initialize .to_irq() before setting up the
irqdomain.

I'm making a combined patch fixing both issues, send out in a few sec.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux