mfd / platform: cros_ec_debugfs: Expose resume result via debugfs
authorEvan Green <evgreen@chromium.org>
Thu, 27 Jun 2019 20:44:45 +0000 (13:44 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 1 Jul 2019 13:39:11 +0000 (15:39 +0200)
commit8c3166e17cf10161d2871dfb1d017287c7b79ff1
treed5a236fb41c68187aac195ba0c4033bd8a428713
parentc18e6ea1014ca1ade0030aca5e80af33c8873e1e
mfd / platform: cros_ec_debugfs: Expose resume result via debugfs

For ECs that support it, the EC returns the number of slp_s0
transitions and whether or not there was a timeout in the resume
response. Expose the last resume result to usermode via debugfs so
that usermode can detect and report S0ix timeouts.

Signed-off-by: Evan Green <evgreen@chromium.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Documentation/ABI/testing/debugfs-cros-ec
drivers/mfd/cros_ec.c
drivers/platform/chrome/cros_ec_debugfs.c
include/linux/mfd/cros_ec.h