public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Force acpi_new_pts_ordering for ASUS A6VC laptop
@ 2008-03-25  8:47 Shaohua Li
  2008-03-25  9:24 ` Carlos Corbacho
  0 siblings, 1 reply; 9+ messages in thread
From: Shaohua Li @ 2008-03-25  8:47 UTC (permalink / raw)
  To: linux acpi; +Cc: Len Brown, Rafael J. Wysocki

On Asus A6VC laptop, PCI config space read of slot 01:01.* after ACPI
_PTS is exectued always returns 0xFFFFFFFF.  Force _PTS is executed
after suspending devices

Signed-off-by: Shaohua Li <shaohua.li@intel.com>

diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
index d2f71a5..ebc20a5 100644
--- a/drivers/acpi/sleep/main.c
+++ b/drivers/acpi/sleep/main.c
@@ -272,12 +272,32 @@ static int __init init_ints_after_s1(const struct dmi_system_id *d)
 	return 0;
 }
 
+/*
+ * On Asus A6VC laptop, PCI config space read of slot 01:01.* after ACPI _PTS
+ * is exectued always returns 0xFFFFFFFF.  Force _PTS is executed after
+ * suspending devices
+ */
+static int __init asus_suspend_order(const struct dmi_system_id *d)
+{
+	printk(KERN_WARNING PREFIX "%s detected, "
+		"acpi_new_pts_ordering is force enabled\n", d->ident);
+	new_pts_ordering = true;
+	return 0;
+}
+
 static struct dmi_system_id __initdata acpisleep_dmi_table[] = {
 	{
 	 .callback = init_ints_after_s1,
 	 .ident = "Toshiba Satellite 4030cdt",
 	 .matches = {DMI_MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),},
 	 },
+	{
+	 .callback = asus_suspend_order,
+	 .ident = "Asus A6VC",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "A6VC"),},
+	 },
 	{},
 };
 #endif /* CONFIG_SUSPEND */



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

end of thread, other threads:[~2008-03-30 12:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25  8:47 [PATCH] Force acpi_new_pts_ordering for ASUS A6VC laptop Shaohua Li
2008-03-25  9:24 ` Carlos Corbacho
2008-03-25 13:10   ` Rafael J. Wysocki
2008-03-26  1:41   ` Shaohua Li
2008-03-26 21:29     ` Rafael J. Wysocki
2008-03-30 11:20       ` Pavel Machek
2008-03-30 12:01         ` Rafael J. Wysocki
2008-03-28  6:27     ` Len Brown
2008-03-28 14:38       ` Rafael J. Wysocki

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