platform/chrome: cros_ec_lightbar - Control of suspend/resume lightbar sequence
authorEric Caruso <ejcaruso@chromium.org>
Tue, 16 May 2017 15:46:48 +0000 (17:46 +0200)
committerBenson Leung <bleung@chromium.org>
Fri, 23 Jun 2017 23:12:18 +0000 (16:12 -0700)
commit405c84308c4335ee7cb58b9304b77b85e61f7129
tree1b487ce422a157890aed2ddacbb9cd5ecb18a83e
parentbe3ebebf4377fe924f0419f78fc82cf01a31e692
platform/chrome: cros_ec_lightbar - Control of suspend/resume lightbar sequence

Don't let EC control suspend/resume sequence. If the EC controls the
lightbar and sets the sequence when it notices the chipset transitioning
between states, we can't make exceptions for cases where we don't want
to activate the lightbar. Instead, let's move the suspend/resume
notifications into the kernel so we can selectively play the sequences.

Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_dev.c
drivers/platform/chrome/cros_ec_dev.h
drivers/platform/chrome/cros_ec_lightbar.c
include/linux/mfd/cros_ec_commands.h