diff options
Diffstat (limited to 'src/drivers/spi/acpi/acpi.c')
-rw-r--r-- | src/drivers/spi/acpi/acpi.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c index d36a03ac20..7af046046a 100644 --- a/src/drivers/spi/acpi/acpi.c +++ b/src/drivers/spi/acpi/acpi.c @@ -165,11 +165,20 @@ static void spi_acpi_fill_ssdt_generator(struct device *dev) } /* Power Resource */ - if (config->has_power_resource) - acpi_device_add_power_res( - &config->reset_gpio, config->reset_delay_ms, - &config->enable_gpio, config->enable_delay_ms, - &config->stop_gpio, config->stop_delay_ms); + if (config->has_power_resource) { + const struct acpi_power_res_params power_res_params = { + &config->reset_gpio, + config->reset_delay_ms, + config->reset_off_delay_ms, + &config->enable_gpio, + config->enable_delay_ms, + config->enable_off_delay_ms, + &config->stop_gpio, + config->stop_delay_ms, + config->stop_off_delay_ms + }; + acpi_device_add_power_res(&power_res_params); + } acpigen_pop_len(); /* Device */ acpigen_pop_len(); /* Scope */ |