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:
Furquan Shaikh
2017-02-17 10:36:23 -08:00
committed by chrome-bot
parent 38188d322e
commit bb184acdcc

View File

@@ -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;
}