Skip to content

Input: gpio-keys: support for disabling GPIOs

Mika Westerberg linux-input 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 10 repliesIn review
  2. v22 patches 65 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- merged previous 2 patches into one
- buttons have 'can_disable' field instead of irqflags field

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Input: gpio-keys - added support for disabling gpios through sysfsDocumentation/ABI/testing/sysfs-platform-gpio-keys drivers/input/keyboard/gpio_keys.c include/linux/gpio_keys.h+352 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/1] Input: gpio-keys: support for disabling GPIOs

Hi Dmitry,

This is third version of the series. Purpose of this patch is to allow userland to disable GPIO buttons interrupting the CPU. There is now sysfs interface that can be used to control the buttons by key code or by switch code.

I merged those previous 2 patches as one. This is because it made little sense of having separate patch for adding the 'can_disable' field.

Changes in v3:
- merged previous 2 patches into one
- buttons have 'can_disable' field instead of irqflags field

Tested with RX-51.

Thanks,
MW

---

Mika Westerberg (1):
Input: gpio-keys - added support for disabling gpios through sysfs

 Documentation/ABI/testing/sysfs-platform-gpio-keys |   44 +++
 drivers/input/keyboard/gpio_keys.c                 |  318 +++++++++++++++++++-
 include/linux/gpio_keys.h                          |    1 +
 3 files changed, 352 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-platform-gpio-keys