]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mcp23s08: fix irq setup order
authorDmitry Mastykin <mastichi@gmail.com>
Thu, 28 Dec 2017 15:19:24 +0000 (18:19 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Jan 2018 14:17:14 +0000 (15:17 +0100)
commit5f90b0c244916847e07e12cf866faaefe1a1a9e7
tree9296a8e9f6bf3c41c4e9f5728117daeb0fbae960
parenta5ad8639db0f4deb161bfbde04e91b0fcbeb6dfe
pinctrl: mcp23s08: fix irq setup order

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().

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Mastykin <mastichi@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c