diff options
| author | Leo Yan <leo.yan@arm.com> | 2025-11-11 21:58:42 +0300 |
|---|---|---|
| committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2025-11-12 19:53:19 +0300 |
| commit | 9e9182cab5ebc3ee7544e60ef08ba19fdf216920 (patch) | |
| tree | bfea171354a02b05ea98b23a4ce886e22eaad724 /scripts | |
| parent | a5e6f584dab0c450e27616433d41cc38fc062ecd (diff) | |
| download | linux-9e9182cab5ebc3ee7544e60ef08ba19fdf216920.tar.xz | |
coresight: etm4x: Remove the state_needs_restore flag
When the restore flow is invoked, it means no error occurred during the
save phase. Otherwise, if any errors happened while saving the context,
the function would return an error and abort the suspend sequence.
Therefore, the state_needs_restore flag is unnecessary. The save and
restore functions are changed to check two conditions:
1) The global flag pm_save_enable is SELF_HOSTED mode;
2) The device is in active mode (non DISABLED).
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-8-f55553b6c8b3@arm.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
