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.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -163,6 +163,7 @@ struct cros_ec_device { · 162 unmodified lines | |||
| 163 | struct ec_response_get_next_event_v1 event_data; | 163 | struct ec_response_get_next_event_v1 event_data; |
| 164 | int event_size; | 164 | int event_size; |
| 165 | u32 host_event_wake_mask; | 165 | u32 host_event_wake_mask; |
| 166 | u32 last_resume_result; | ||
| 166 | }; | 167 | }; |
| 167 | 168 | ||
| 168 | /** | 169 | /** |