]> git.baikalelectronics.ru Git - kernel.git/commit
Input: iqs7222 - set all ULP entry masks by default
authorJeff LaBundy <jeff@labundy.com>
Thu, 8 Sep 2022 21:24:35 +0000 (14:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Sep 2022 10:08:50 +0000 (03:08 -0700)
commit542370f018ba0dc0b482684e18b7c7cecaddafcd
treee7b3b9cbcc43864d6fc1e0e903d99435ec2ccc60
parent12313a6f1ee40f18f88aa1a5c852d3bb6ec3f92a
Input: iqs7222 - set all ULP entry masks by default

Some devices expose an ultra-low-power (ULP) mode entry mask for
each channel. If the mask is set, the device cannot enter ULP so
long as the corresponding channel remains in an active state.

The vendor has advised setting the mask for any disabled channel.
To accommodate this suggestion, initially set all masks and then
clear them only if specified in the device tree.

Fixes: a8b0abcc88cc ("Input: add support for Azoteq IQS7222A/B/C")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20220908131548.48120-8-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/iqs7222.c