Hi Dmitry, This is second version of the patches. I'm not sure whether I was supposed to send them again but here they are :) The first patch now uses new field 'irqflags' which allows platform to specify exact irq flags it wants. Second patch is basically the one you provided (the cleaner and simpler one) but I changed it to use this new field. Also added some ABI documentation for the sysfs files. I tested this with RX-51. Thanks, MW Mika Westerberg (2): Input: gpio-keys - allow platform to specify exact irq flags Input: gpio-keys - added support for disabling gpios through sysfs Documentation/ABI/testing/sysfs-platform-gpio-keys | 44 +++ drivers/input/keyboard/gpio_keys.c | 325 +++++++++++++++++++- include/linux/gpio_keys.h | 7 + 3 files changed, 365 insertions(+), 11 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-platform-gpio-keys -- 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