Only watch SUSPWRDNACK for primary plane state

This commit is contained in:
Jeremy Soller 2019-11-22 15:14:52 -07:00
parent 5402fa33df
commit 0426c066b6
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -254,8 +254,7 @@ void power_event(void) {
// EC must keep VccPRIM powered if SUSPWRDNACK is de-asserted low or system
// state is S3
bool primary = !gpio_get(&SUSWARN_N) || !gpio_get(&SUSB_N_PCH);
if (primary) {
if (!gpio_get(&SUSWARN_N)) {
if (state == POWER_STATE_DS5) {
power_on_s5();
state = POWER_STATE_DS5;