android_kernel_motorola_sm6375/drivers/input
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sudeep Holla dadbb0aa36 Input: gpio_keys - set input direction explicitly
Commit 700a38b27e ("Input: gpio_keys - switch to using generic device
properties") switched to use generic device properties for GPIO keys and
commit 5feeca3c1e ("Input: gpio_keys - add support for GPIO descriptors")
switched from legacy GPIO numbers to GPIO descriptors.

Previously devm_gpio_request_one was explicitly passed GPIOF_DIR_IN flag
to set the GPIO direction as input. However devm_get_gpiod_from_child
doesn't have such provisions and hence fwnode_get_named_gpiod can't set
it as input.

This breaks few platforms with the following error:
" gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ
  unable to lock HW IRQ <n> for IRQ
  genirq: Failed to request resources for POWER (irq <x>) on irqchip
  gpio_keys: Unable to claim irq <x>; error -22
  gpio-keys: probe failed with error -22 "

This patch fixes the issue by setting input direction explicitly for
gpio lines described by generic properties.

Fixes: 700a38b27e ("Input: gpio_keys - switch to using generic device properties")
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2016-11-17 09:16:33 -08:00
..
gameport
joystick Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2016-08-05 23:24:15 -04:00
keyboard Input: gpio_keys - set input direction explicitly 2016-11-17 09:16:33 -08:00
misc Input: bma150 - avoid binding to bma180 if IIO bma180 driver present 2016-11-16 16:59:24 -08:00
mouse Input: elan_i2c - always output the device information 2016-10-26 16:48:15 -07:00
rmi4 Linux 4.8 2016-10-13 17:25:40 -07:00
serio Input: i8042 - use chassis info to skip selftest on Asus laptops 2016-10-21 15:39:09 -07:00
tablet Input: pegasus_notetaker - directly include workqueue header 2016-08-25 10:11:32 -07:00
touchscreen Input: raydium_i2c_ts - fix spelling mistake in dev_err message 2016-11-16 17:25:02 -08:00
apm-power.c
evbug.c
evdev.c
ff-core.c
ff-memless.c
input-compat.c
input-compat.h
input-leds.c
input-mt.c
input-polldev.c
input.c Merge branch 'for-linus' into next 2016-07-19 11:02:56 -07:00
joydev.c Input: joydev - recognize devices with Z axis as joysticks 2016-09-26 20:03:06 -07:00
Kconfig
Makefile
matrix-keymap.c
mousedev.c
sparse-keymap.c