]> git.baikalelectronics.ru Git - kernel.git/commit
Input: iqs5xx - make reset GPIO optional
authorJeff LaBundy <jeff@labundy.com>
Tue, 23 Mar 2021 03:15:32 +0000 (20:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 Mar 2021 18:14:10 +0000 (11:14 -0700)
commitdd500d24a5212567beccc1db046af432e9de237f
tree64fe4318653f96a0706e413f789ec6b9b4ab79ff
parent04e5d71d1460d2e4421187d8c4869c2edaa55568
Input: iqs5xx - make reset GPIO optional

The device's hardware reset pin is only required if the platform
must be able to update the device's firmware.

As such, demote the reset GPIO to optional in support of devices
that ship with pre-programmed firmware and don't route the reset
pin back to the SoC.

In that case, the 'fw_file' attribute is hidden because there is
no way to open the bootloader. The logic is extended to the case
in which the device does not advertise bootloader support in the
first place.

Last but not least, remove the hardware reset performed at probe
because there is no reason to reset the device manually. A power
on reset function already ensures a clean reset at start-up.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20210323021006.367-1-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c