forked from thesofproject/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BACKPORT: mfd / platform: cros_ec_debugfs: Expose resume result via d…
…ebugfs 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> Conflicts occurred because a downstream patch added last_event_time right next to my new last_resume_result member. Conflicts: include/linux/mfd/cros_ec.h (cherry picked from commit 8c3166e) Conflicts: include/linux/mfd/cros_ec.h BUG=b:132824159 TEST=Suspend/resume hatch, print new file Change-Id: I4ef7aeb7a79c378659ab2b47a371766bca06113a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1700142 Tested-by: Evan Green <evgreen@chromium.org> Reviewed-by: Ravi Chandra Sadineni <ravisadineni@chromium.org> Commit-Queue: Evan Green <evgreen@chromium.org>
- Loading branch information
Evan Green
authored and
Commit Bot
committed
Jul 12, 2019
1 parent
65cde87
commit 45e5f47
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters