Re: [PATCH] pinctrl: mcp23s08: fix irq setup order

From: Dmitry Mastykin
Date: Wed Jan 03 2018 - 07:49:38 EST


On Tue, Jan 2, 2018 at 12:10 PM, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:
>
> Patch applied, albeit for devel.
>
> Should it be tagged for stable or go into fixes?
>
Thank you very much, Linus!
About tags, please do as it convenient for you.

Kind regards,
Dmitry

> On Thu, Dec 28, 2017 at 4:19 PM, Dmitry Mastykin <mastichi@xxxxxxxxx> wrote:
>
>> When using mcp23s08 module with gpio-keys, often (50% of boots)
>> it fails to get irq numbers with message:
>> "gpio-keys keys: Unable to get irq number for GPIO 0, error -6".
>> Seems that irqs must be setup before devm_gpiochip_add_data().
>>
>> Signed-off-by: Dmitry Mastykin <mastichi@xxxxxxxxx>