Hello, when using gpio-keys with mcp23s08, sometimes it fails to get irq numbers: [ 10.236393] gpiochip_setup_dev: registered GPIOs 504 to 511 on device: gpiochip4 (mcp23008) [ 10.242995] of_get_named_gpiod_flags: parsed 'gpios' property of node '/keys/button@1[0]' - status (0) [ 10.243759] gpio-keys keys: Unable to get irq number for GPIO 0, error -6 but more often it succeeds (approx. 1:3): [ 10.702204] gpiochip_setup_dev: registered GPIOs 504 to 511 on device: gpiochip4 (mcp23008) [ 10.731450] of_get_named_gpiod_flags: parsed 'gpios' property of node '/keys/button@1[0]' - status (0) [ 10.803577] of_get_named_gpiod_flags: parsed 'gpios' property of node '/keys/button@2[0]' - status (0) [ 10.869131] of_get_named_gpiod_flags: parsed 'gpios' property of node '/keys/button@3[0]' - status (0) [ 10.928949] of_get_named_gpiod_flags: parsed 'gpios' property of node '/keys/button@4[0]' - status (0) Please suggest where could be the problem. Thank you! Dmitry Mastykin -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html