diff options
| author | 2019-06-27 13:44:45 -0700 | |
|---|---|---|
| committer | 2019-07-01 15:39:11 +0200 | |
| commit | 8c3166e17cf10161d2871dfb1d017287c7b79ff1 (patch) | |
| tree | d5a236fb41c68187aac195ba0c4033bd8a428713 /include/linux | |
| parent | platform/chrome: lightbar: Get drvdata from parent in suspend/resume (diff) | |
| download | linux-dev-8c3166e17cf10161d2871dfb1d017287c7b79ff1.tar.xz linux-dev-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')
| -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; }; /** |
