]> Git Repo - linux.git/commit
pinctrl: mcp23s08: fix irq setup order
authorDmitry Mastykin <[email protected]>
Thu, 28 Dec 2017 15:19:24 +0000 (18:19 +0300)
committerLinus Walleij <[email protected]>
Tue, 30 Jan 2018 14:17:14 +0000 (15:17 +0100)
commit02e389e63e3523828fc3832f27e0341885f60f6f
tree9296a8e9f6bf3c41c4e9f5728117daeb0fbae960
parentd3452f1d88311c9af16d709d51dba5ad44afbd1d
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: [email protected]
Signed-off-by: Dmitry Mastykin <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/pinctrl/pinctrl-mcp23s08.c
This page took 0.05213 seconds and 4 git commands to generate.