From 4eba4e3f269624a1655860f5bcfe441503e62133 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sun, 20 Apr 2025 14:23:27 -0500 Subject: [PATCH] superio/ite/it8772f: Program power state after failure Allow the power state after failure to be set using an option backend if used, otherwise fall back to the Kconfig selection. This is a noop for all it8772f boards unless they enable an option backend, in which case that option setting is now functional, whereas before it would have been ignored for the Kconfig selection. TEST=build/boot google/panther with various power state after fail Kconfig selections. Change-Id: I1988d70fe27a287cd2cc91dbb905c243c24c816d Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/87383 Reviewed-by: Maxim Polyakov Tested-by: build bot (Jenkins) --- src/superio/ite/it8772f/superio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/superio/ite/it8772f/superio.c b/src/superio/ite/it8772f/superio.c index 662b8a2ca9..59aca6243b 100644 --- a/src/superio/ite/it8772f/superio.c +++ b/src/superio/ite/it8772f/superio.c @@ -26,6 +26,7 @@ static void it8772f_init(struct device *dev) if (!conf || !res) break; ite_ec_init(res->base, &conf->ec); + ite_ec_set_power_state(dev); break; case IT8772F_GPIO: /* Set GPIO output levels */