mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
power/skylake: Use power_get_signals instead of power_has_signals
In chipset_handle_espi_reset_assert, check the state of SLP_SUS# signal using power_get_signals instead of power_has_signals since we do not care if the check fails. This avoids unwanted "power lost input" prints on the EC console. BUG=chrome-os-partner:63033 BRANCH=None TEST=Verified that entry into S3 does not result in any "power lost input" messages on EC console. Change-Id: I88bc76a90b48e7c565423235f6e8431176ed4872 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/444262 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
38188d322e
commit
bb184acdcc
@@ -100,7 +100,8 @@ void chipset_handle_espi_reset_assert(void)
|
||||
* event). In this case, check if shutdown was being forced by pressing
|
||||
* power button. If yes, release power button.
|
||||
*/
|
||||
if (power_has_signals(IN_PCH_SLP_SUS_DEASSERTED) && forcing_shutdown) {
|
||||
if ((power_get_signals() & IN_PCH_SLP_SUS_DEASSERTED) &&
|
||||
forcing_shutdown) {
|
||||
power_button_pch_release();
|
||||
forcing_shutdown = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user