Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH topic/core-for-CI 1/2] Revert "HAX suspend: Disable S3/S4 for fi-bdw-samus"
@ 2024-10-23 21:18 Lucas De Marchi
  2024-10-23 21:18 ` [PATCH topic/core-for-CI 2/2] Revert "HAX sound: Disable probing snd_hda with DG1" Lucas De Marchi
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Lucas De Marchi @ 2024-10-23 21:18 UTC (permalink / raw)
  To: intel-gfx; +Cc: Jani Nikula, Rodrigo Vivi, Lucas De Marchi

This reverts commit efeb42fe3b7c58abbe674515252cfdb71c09eba5.

That machine is not in CI anymore, let's drop the hack.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
 drivers/acpi/sleep.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 4272cbc71ae89..c8ee8e42b0f64 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -84,16 +84,11 @@ static int acpi_sleep_prepare(u32 acpi_state)
 	return 0;
 }
 
-static u8 max_sleep_state = -1;
-
 bool acpi_sleep_state_supported(u8 sleep_state)
 {
 	acpi_status status;
 	u8 type_a, type_b;
 
-	if (sleep_state > max_sleep_state)
-		return false;
-
 	status = acpi_get_sleep_type_data(sleep_state, &type_a, &type_b);
 	return ACPI_SUCCESS(status) && (!acpi_gbl_reduced_hardware
 		|| (acpi_gbl_FADT.sleep_control.address
@@ -170,13 +165,6 @@ static int __init init_nvs_nosave(const struct dmi_system_id *d)
 	return 0;
 }
 
-static int __init init_nosleep(const struct dmi_system_id *d)
-{
-	pr_info("Disabling ACPI suspend\n");
-	max_sleep_state = 0;
-	return 0;
-}
-
 bool acpi_sleep_default_s3;
 
 static int __init init_default_s3(const struct dmi_system_id *d)
@@ -411,14 +399,6 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "20GGA00L00"),
 		},
 	},
-	{
-	.callback = init_nosleep,
-	.ident = "samus",
-	.matches = {
-		DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
-		DMI_MATCH(DMI_PRODUCT_NAME, "Samus"),
-		},
-	},
 	{},
 };
 
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-28 20:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 21:18 [PATCH topic/core-for-CI 1/2] Revert "HAX suspend: Disable S3/S4 for fi-bdw-samus" Lucas De Marchi
2024-10-23 21:18 ` [PATCH topic/core-for-CI 2/2] Revert "HAX sound: Disable probing snd_hda with DG1" Lucas De Marchi
2024-10-24 10:23   ` Jani Nikula
2024-10-24  8:30 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [topic/core-for-CI,1/2] Revert "HAX suspend: Disable S3/S4 for fi-bdw-samus" Patchwork
2024-10-24  8:30 ` ✓ Fi.CI.BAT: success " Patchwork
2024-10-24 10:00 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-10-24 10:22 ` [PATCH topic/core-for-CI 1/2] " Jani Nikula
2024-10-28 20:59 ` Lucas De Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox