summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/cros_ec.h
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2019-06-27 13:44:45 -0700
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-07-01 15:39:11 +0200
commit8c3166e17cf10161d2871dfb1d017287c7b79ff1 (patch)
treed5a236fb41c68187aac195ba0c4033bd8a428713 /include/linux/mfd/cros_ec.h
parentc18e6ea1014ca1ade0030aca5e80af33c8873e1e (diff)
downloadlinux-stable-8c3166e17cf10161d2871dfb1d017287c7b79ff1.tar.gz
linux-stable-8c3166e17cf10161d2871dfb1d017287c7b79ff1.tar.bz2
linux-stable-8c3166e17cf10161d2871dfb1d017287c7b79ff1.zip
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>
Diffstat (limited to 'include/linux/mfd/cros_ec.h')
-rw-r--r--include/linux/mfd/cros_ec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index cfa78bb4990f..d50ade418a83 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -163,6 +163,7 @@ struct cros_ec_device {
struct ec_response_get_next_event_v1 event_data;
int event_size;
u32 host_event_wake_mask;
+ u32 last_resume_result;
};
/**