[ACPI] PCI interrupt link suspend/resume - revert to 2.6.12 behaviour
authorDavid Shaohua Li <shaohua.li@intel.com>
Wed, 3 Aug 2005 15:00:11 +0000 (11:00 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 3 Aug 2005 15:04:10 +0000 (11:04 -0400)
This patch disables the PCI Interrupt Link refernece counts,
which should not co-exist with the 2.6.12 irq_router.resume
method or else a double acpi_pci_link_set() could result
on resume.

Signed-off-by: David Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_link.c

index 6a29610edc112f6a047b229a2fd4bbeb051b1309..0091dbdf7ef9ed2296839951b0b4fe720896a756 100644 (file)
@@ -692,7 +692,18 @@ acpi_pci_link_free_irq(acpi_handle handle)
                return_VALUE(-1);
        }
 
+#ifdef FUTURE_USE
+       /*
+        * The Link reference count allows us to _DISable an unused link
+        * and suspend time, and set it again  on resume.
+        * However, 2.6.12 still has irq_router.resume
+        * which blindly restores the link state.
+        * So we disable the reference count method
+        * to prevent duplicate acpi_pci_link_set()
+        * which would harm some systems
+        */
        link->refcnt --;
+#endif
        ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                "Link %s is dereferenced\n", acpi_device_bid(link->device)));