diff options
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/intel/common/block/pcie/rtd3/rtd3.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/soc/intel/common/block/pcie/rtd3/rtd3.c b/src/soc/intel/common/block/pcie/rtd3/rtd3.c index 6eb647119c..2224810228 100644 --- a/src/soc/intel/common/block/pcie/rtd3/rtd3.c +++ b/src/soc/intel/common/block/pcie/rtd3/rtd3.c @@ -131,6 +131,13 @@ pcie_rtd3_acpi_method_on(unsigned int pcie_rp, acpigen_write_method_serialized("_ON", 0); + /* When this feature is enabled, ONSK indicates if the previous _OFF was + * skipped. If so, since the device was not in Off state, and the current + * _ON can be skipped as well. + */ + if (config->skip_on_off_support) + acpigen_write_if_lequal_namestr_int("ONSK", 0); + /* The _STA returns current power status of device, so we can skip _ON * if _STA returns 1 * Example: @@ -147,14 +154,6 @@ pcie_rtd3_acpi_method_on(unsigned int pcie_rp, acpigen_write_return_op(ONE_OP); acpigen_write_if_end(); - - /* When this feature is enabled, ONSK indicates if the previous _OFF was - * skipped. If so, since the device was not in Off state, and the current - * _ON can be skipped as well. - */ - if (config->skip_on_off_support) - acpigen_write_if_lequal_namestr_int("ONSK", 0); - /* Disable modPHY power gating for PCH RPs. */ if (rp_type == PCIE_RP_PCH) pcie_rtd3_enable_modphy_pg(pcie_rp, PG_DISABLE); |