]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: cros_ec: Check for mkbp events on resume only if supported.
authorRaviChandra Sadineni <ravisadineni@chromium.org>
Mon, 20 Aug 2018 15:34:19 +0000 (08:34 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Oct 2018 07:58:34 +0000 (08:58 +0100)
commitc8a3994b9a1fb1d6593400b77cbc2cc58186888d
tree4982859a49f016abc8ba10cc3df2a8b4fe84f8a0
parent5e068cf00a9932719b78ea71d7712efa2956302a
mfd: cros_ec: Check for mkbp events on resume only if supported.

Currently on every resume we check for mkbp events and notify the
clients. This helps in identifying the wakeup sources. But on devices
that do not support mkbp protocol, we might end up querying key state of
the keyboard in a loop which blocks the resume. Instead check for events
only if mkbp is supported.

Signed-off-by: RaviChandra Sadineni <ravisadineni@chromium.org>
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec.c