diff options
author | Evan Green <evgreen@chromium.org> | 2019-06-27 23:44:45 +0300 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2019-07-01 16:39:11 +0300 |
commit | 8c3166e17cf10161d2871dfb1d017287c7b79ff1 (patch) | |
tree | d5a236fb41c68187aac195ba0c4033bd8a428713 /include/linux/mfd/cros_ec.h | |
parent | c18e6ea1014ca1ade0030aca5e80af33c8873e1e (diff) | |
download | linux-8c3166e17cf10161d2871dfb1d017287c7b79ff1.tar.xz |
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.h | 1 |
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; }; /** |